pymel.core.system.detachDeviceAttr

detachDeviceAttr(*args, **kwargs)

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. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
all / all bool ../../../_images/create.gif
  Delete all attachments on every device.
attribute / at unicode ../../../_images/create.gif
  The attribute to detach. This flag must be used with the -d/device flag.
axis / ax unicode ../../../_images/create.gif
  The axis to detach. This flag must be used with the -d/device flag.
device / d unicode ../../../_images/create.gif
  Delete the attachment for this device. If the -ax/axis flag is not used, all of the attachments connected to this device are detached.
selection / sl bool ../../../_images/create.gif
  Detaches selection attachments. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.detachDeviceAttr

Example:

import pymel.core as pm

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