Your Ad Here

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

Synopsis

detachDeviceAttr([attribute=boolean], [axis=boolean], [device=boolean], [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 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.

Flags

attribute, axis, device, selection
Long name (short name) [argument types] Properties
device(d) boolean
Delete the attachment for this device. If the -ax/axis flag is not used, all of the attachments connected to this device are detached.
attribute(at) boolean
The attribute to detach. This flag must be used with the -d/device flag.
axis(ax) boolean
The axis to detach. This flag must be used with the -d/device flag.
selection(sl) boolean
Detaches selection attachments. -all Delete all attachments on every device.

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.

Return value


None

Related

assignInputDevice, attachDeviceAttr, devicePanel, getInputDeviceRange, getModifiers, listDeviceAttachments, listInputDeviceAxes, listInputDeviceButtons, listInputDevices, recordAttr, setAttrMapping, setInputDeviceMapping, unassignInputDevice

Python examples

import maya.cmds as cmds

cmds.detachDeviceAttr( d='spaceball', ax='XAxis', at='translateX' )

  

Return to Autodesk Index


Your Ad Here