Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

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.

Return value

None

In query mode, return type is based on queried flag.

Related

assignInputDevice, attachDeviceAttr, detachDeviceAttr, devicePanel, getInputDeviceRange, getModifiers, listDeviceAttachments, listInputDeviceAxes, listInputDeviceButtons, listInputDevices, setAttrMapping, setInputDeviceMapping, unassignInputDevice

Flags

attribute, delete
Long name (short name) Argument types Properties
attribute(at) string createmultiuse
specify the attribute to record
delete(d) boolean create
Do not record the specified attributes

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.

Python examples

import maya.cmds as cmds

# This command will setup the translateX and translateY
# attributes for recording.
cmds.recordAttr( at=['translateX', 'translateZ'] )