yeti
create_yeti_variable(yeti_shape_node, attr_name, value=None, force_value=False)
Get user defined yeti user variables for a pgYetiMaya
shape node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
yeti_shape_node | str | The | required |
attr_name | str | The fully qualified yeti variable name, e.g. "yetiVariableF_myfloat" or "yetiVariableV_myvector" | required |
value | object | The value to set (must match the type of the attribute) When value is None it will ignored and not be set. | None |
force_value | bool | Whether to set the value if the attribute already exists or not. | False |
Returns:
Name | Type | Description |
---|---|---|
bool | bool | Whether the attribute value was set or not. |
Source code in client/ayon_maya/api/yeti.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
get_yeti_user_variables(yeti_shape_node)
Get user defined yeti user variables for a pgYetiMaya
shape node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
yeti_shape_node | str | The | required |
Returns:
Name | Type | Description |
---|---|---|
list | List[str] | Attribute names (for a vector attribute it only lists the top parent attribute, not the attribute per axis) |
Source code in client/ayon_maya/api/yeti.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|