Go to: Synopsis. Return value. Related. Flags. Python examples.
detachDeviceAttr([attribute=string], [axis=string], [device=string], [selection=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
detachDeviceAttr is undoable, queryable, and NOT editable.
This command detaches connections between device axes and node attributes. The command line arguments are the same as for the corresponding attachDeviceAttr except for the clutch argument which can not be used in this command.None
In query mode, return type is based on queried flag.
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
device(d)
|
string
|
|||
|
||||
attribute(at)
|
string
|
|||
|
||||
axis(ax)
|
string
|
|||
|
||||
selection(sl)
|
boolean
|
|||
|
||||
import maya.cmds as cmds cmds.detachDeviceAttr( d='spaceball', ax='XAxis', at='translateX' )