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.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

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.

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)

Previous topic

pymel.core.animation.deformerWeights

Next topic

pymel.core.animation.disconnectJoint

Core

Core Modules

Other Modules

This Page