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

Synopsis

listAnimatable([active=boolean], [manip=boolean], [manipHandle=boolean], [shape=boolean], [type=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

listAnimatable is undoable, NOT queryable, and NOT editable.

This command list the animatable attributes of a node. Command flags allow filtering by the current manipulator, or node type.

Return value

string[]All animatable attributes found

Flags

active, manip, manipHandle, shape, type
Long name (short name) Argument types Properties
active(act) boolean create
This flag is obsolete and no longer supported.
manip(m) boolean create
Return only those attributes affected by the current manip. If there is no manip active and any other flags are specified, output is the same as if the "-manip" flag were not present.
manipHandle(mh) boolean create
Return only those attributes affected by the current manip handle. If there is no manip handle active and any other flags are specified, output is the same as if the "-manipHandle" flag were not present.
shape(s) boolean create
This flag is obsolete and no longer supported.
type(typ) boolean create
Instead of returning attributes, Return the types of nodes that are currently animatable.

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

# List only the attrs driven by the current manip.
#
cmds.listAnimatable( manip=True )

# List only the attrs driven by the current manipulator handle.
#
cmds.listAnimatable( manipHandle=True )

# List only the types of nodes driven by the current manip.
#
cmds.listAnimatable( manip=True, type=True )

# List only the types of the active nodes.
#
cmds.listAnimatable( type=True )

# List attributes on active objects (and shapes below them),
# or active attrs.
#
cmds.listAnimatable()

# List types of active objects and types of any shapes below active
# objects.
#
cmds.listAnimatable( type=True )