synthpic2.recipe.prototypes.feature
¶
Home of the Feature class.
Module Contents¶
Classes¶
This class allows to get and set feature values. These features can either be |
- class synthpic2.recipe.prototypes.feature.Feature¶
This class allows to get and set feature values. These features can either be custom-defined, or link to a property of a Blender object.
- property value: Any¶
- name: str¶
- blender_link: str | None¶
- _target_: str | None = 'synthpic2.recipe.prototypes.Feature'¶
- _value: Any | None¶
- __post_init__() None ¶
Gets called after the init routine.
- _validate_blender_link() None ¶
Validate the blender_link property.
- Raises:
ValueError: raised if the blender_link property is invalid
- _sanitize_blender_link() None ¶
Sanitize the blender_link property.
- _parse_blender_link() tuple[Any, InterfaceType, KeyType] ¶
Extract the attributes from blender_link and assign it to value.
- static _get_node_value(node: Any, interface: InterfaceType, key: KeyType) Any ¶
- static _set_node_value(node: Any, interface: InterfaceType, key: KeyType, value: Any) None ¶
- static _parse_node_interface_and_key(regex_match: re.Match) tuple[InterfaceType, int | str] ¶
- update_blender_link(renaming_maps: Dict[str, synthpic2.custom_types.RenamingMap]) None ¶