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. 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 attributesFlag can appear in Create mode of commandFlag 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

import maya.cmds as cmds

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

Previous topic

pymel.core.system.preloadRefEd

Next topic

pymel.core.system.redo

Core

Core Modules

Other Modules

This Page