RemapAttributesToAttribute¶
vtool.maya_lib.attr.RemapAttributesToAttribute (…) |
Create a slider switch between multiple attributes. |
-
class
RemapAttributesToAttribute
(node, attribute)¶ Create a slider switch between multiple attributes. This is useful for setting up switches like ikFk. This will create the switch attribute if it doesn’t already exist.
Parameters: - node (str) – The name of a node.
- attribute (str) – The attribute which should do the switching.
-
set_keyable
(bool_value)¶ Whether the switch attribute should be keyable. This only works if the attribute doesn’t exist prior to create()
-
create_attributes
(node, attributes)¶ Add attributes to be mapped. Saved in a list for create()
Parameters: - node (str) – The name of the node where the attributes live.
- attributes (list) – The names of attributes on the node to map to the switch.
-
create_attribute
(node, attribute)¶ Add an attribute to be mapped. Saved in a list for create()
Parameters: - node (str) – The name of the node where the attributes live.
- attributes (list) – The name of an attribute on the node to map to the switch.
-
create
()¶ Create the switch.