pymel.core.animation.deviceManager

deviceManager(*args, **kwargs)

This command queriers the internal device manager for information on attached devices. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
attachment / att bool ../../../_images/query.gif
  Returns the plugs that a device and axis are attached to. Expects the -deviceIndex and axisIndex to be used in conjunction.
axisCoordChanges / acc bool ../../../_images/query.gif
  Returns whether the axis coordinate changes. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.
axisIndex / axi int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Used usually in conjunction with other flags, to indicate the index of the axis.
axisName / axn bool ../../../_images/query.gif
  Returns the name of the axis. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.
axisOffset / axo bool ../../../_images/query.gif
  Returns the offset of the axis. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.
axisScale / axs bool ../../../_images/query.gif
  Returns the scale of the axis. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.
deviceIndex / dvi int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Used usually in conjunction with other flags, to indicate the index of the device.
deviceNameFromIndex / dni int ../../../_images/query.gif
  Returns the name of the device with the given index.
numAxis / nax bool ../../../_images/query.gif
  Returns the number of axis this device has. Expects the -deviceIndex flag to be used.
numDevices / ndv bool ../../../_images/query.gif
  Returns the number of devices currently attached. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.deviceManager

Example:

import pymel.core as pm

# FIXME: get python sytax for above query.
pm.deviceManager("layer1", root=True)