pymel.core.system.recordAttr

recordAttr(*args, **kwargs)

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. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
attribute / at unicode ../../../_images/create.gif
  specify the attribute to record
delete / d bool ../../../_images/create.gif
  Do not record the specified attributes Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.recordAttr

Example:

import pymel.core as pm

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