pymel.core.animation.listAnimatable

listAnimatable(*args, **kwargs)

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

Modifications:
  • returns an empty list when the result is None
  • returns wrapped classes

Flags:

Long Name / Short Name Argument Types Properties
active / act bool ../../../_images/create.gif
  This flag is obsolete and no longer supported.
manip / m bool ../../../_images/create.gif
  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 -manipflag were not present.
manipHandle / mh bool ../../../_images/create.gif
  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 -manipHandleflag were not present.
shape / s bool ../../../_images/create.gif
  This flag is obsolete and no longer supported.
type / typ bool ../../../_images/create.gif
  Instead of returning attributes, Return the types of nodes that are currently animatable. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.listAnimatable

Example:

import pymel.core as pm

# List only the attrs driven by the current manip.
#
pm.listAnimatable( manip=True )
# Result: [] #

# List only the attrs driven by the current manipulator handle.
#
pm.listAnimatable( manipHandle=True )
# Result: [] #

# List only the types of nodes driven by the current manip.
#
pm.listAnimatable( manip=True, type=True )
# Result: [] #

# List only the types of the active nodes.
#
pm.listAnimatable( type=True )
# Result: [] #

# List attributes on active objects (and shapes below them),
# or active attrs.
#
pm.listAnimatable()
# Result: [] #

# List types of active objects and types of any shapes below active
# objects.
#
pm.listAnimatable( type=True )
# Result: [] #