USDAttributeModel#
- stage: Stage,
- path: Path,
- prop_name: str,
- prop_type: ValueTypeNames = None,
- draggable: bool = False,
Bases:
USDObjectModel
A simple value model to watch the specified attribute.
Methods
__init__
(stage, path, prop_name[, ...])Constructor.
get_type_name
(value)Return the explicitly requested property type, or one auto-deduced from the value
set_value
(value)Set the value directly to USD.
Attributes
- stage: Stage,
- path: Path,
- prop_name: str,
- prop_type: ValueTypeNames = None,
- draggable: bool = False,
Constructor.
- Parameters:
stage (Usd.Stage) – USD stage.
path (Sdf.Path) – Path in stage.
prop_name (str) – Attribute name.
- Keyword Arguments:
prop_type (Sdf.ValueTypeNames) – Attribute type, defaults to None means get type from attribute value.
draggable (bool) – Widget that model bind to can be dragged, defaults to False.
- value: Any,
Return the explicitly requested property type, or one auto-deduced from the value
Set the value directly to USD.
- Parameters:
value (Any) – Value to set.