Go to: Synopsis. Return value. Keywords. Flags. Python examples.
deviceManager([attachment=boolean], [axisCoordChanges=boolean], [axisIndex=int], [axisName=boolean], [axisOffset=boolean], [axisScale=boolean], [deviceIndex=int], [deviceNameFromIndex=int], [numAxis=boolean], [numDevices=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
deviceManager is undoable, queryable, and editable.
This command queriers the internal device manager for information on attached devices.
None
In query mode, return type is based on queried flag.
device
attachment, axisCoordChanges, axisIndex, axisName, axisOffset, axisScale, deviceIndex, deviceNameFromIndex, numAxis, numDevices
Long name (short name) |
Argument types |
Properties |
attachment(att)
|
boolean
|
|
|
Returns the plugs that a device and axis are attached to. Expects the -deviceIndex and
axisIndex to be used in conjunction.
|
|
axisCoordChanges(acc)
|
boolean
|
|
|
Returns whether the axis coordinate changes. Expects the -deviceIndex and -axisIndex flags to be used
in conjunction.
|
|
axisIndex(axi)
|
int
|
|
|
Used usually in conjunction with other flags, to indicate the index of the axis.
|
|
axisName(axn)
|
boolean
|
|
|
Returns the name of the axis. Expects the -deviceIndex and -axisIndex flags to be used
in conjunction.
|
|
axisOffset(axo)
|
boolean
|
|
|
Returns the offset of the axis. Expects the -deviceIndex and -axisIndex flags to be used
in conjunction.
|
|
axisScale(axs)
|
boolean
|
|
|
Returns the scale of the axis. Expects the -deviceIndex and -axisIndex flags to be used
in conjunction.
|
|
deviceIndex(dvi)
|
int
|
|
|
Used usually in conjunction with other flags, to indicate the index of the device.
|
|
deviceNameFromIndex(dni)
|
int
|
|
|
Returns the name of the device with the given index.
|
|
numAxis(nax)
|
boolean
|
|
|
Returns the number of axis this device has. Expects the -deviceIndex flag to be used.
|
|
numDevices(ndv)
|
boolean
|
|
|
Returns the number of devices currently attached.
|
|
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.
|
import maya.cmds as cmds
# FIXME: get python sytax for above query.
cmds.deviceManager("layer1", root=True)