Go to: Synopsis. Return value. Related. Flags. Python examples.
recordAttr([attribute=string], [delete=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
recordAttr is undoable, queryable, and NOT editable.
This command sets up an attribute to be recorded. When the record command is executed, any changes to this attribute are recorded. When recording stops these changes are turned into keyframes. If no attributes are specified all attributes of the node are recorded. When the query flag is used, a list of the attributes being recorded will be returned.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
attribute(at)
|
string
|
|||
|
||||
delete(d)
|
boolean
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can have multiple arguments, passed either as a tuple or a list. |
import maya.cmds as cmds # This command will setup the translateX and translateY # attributes for recording. cmds.recordAttr( at=['translateX', 'translateZ'] )