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 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.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
attribute(at)
|
string
|
![]() ![]() |
||
|
||||
delete(d)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # This command will setup the translateX and translateY # attributes for recording. cmds.recordAttr( at=['translateX', 'translateZ'] )