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

Synopsis

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.

Return value

None

In query mode, return type is based on queried flag.

Keywords

device

Flags

attachment, axisCoordChanges, axisIndex, axisName, axisOffset, axisScale, deviceIndex, deviceNameFromIndex, numAxis, numDevices
Long name (short name) Argument types Properties
numDevices(ndv) boolean query
Returns the number of devices currently attached.
deviceIndex(dvi) int createqueryedit
Used usually in conjunction with other flags, to indicate the index of the device.
axisIndex(axi) int createqueryedit
Used usually in conjunction with other flags, to indicate the index of the axis.
attachment(att) boolean query
Returns the plugs that a device and axis are attached to. Expects the -deviceIndex and axisIndex to be used in conjunction.
deviceNameFromIndex(dni) int query
Returns the name of the device with the given index.
numAxis(nax) boolean query
Returns the number of axis this device has. Expects the -deviceIndex flag to be used.
axisName(axn) boolean query
Returns the name of the axis. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.
axisScale(axs) boolean query
Returns the scale of the axis. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.
axisOffset(axo) boolean query
Returns the offset of the axis. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.
axisCoordChanges(acc) boolean query
Returns whether the axis coordinate changes. Expects the -deviceIndex and -axisIndex flags to be used in conjunction.

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

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