Go to: Synopsis. Flags. Return value. Related. Python examples.
disconnectAttr(
sourceAttribute destinationAttribute
, [nextAvailable=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
disconnectAttr is undoable, queryable, and editable.
Disconnects two connected attributes.Long name (short name) | [argument types] | Properties | ||
---|---|---|---|---|
nextAvailable(na)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # Create a sphere and cone and connect their rotate attribute. # sph = cmds.sphere() con = cmds.cone() sphereR = '%s.r' % sph[0] coneR = '%s.r' % con[0] cmds.connectAttr(sphereR, coneR) # Break the connection between the rotate attributes. # cmds.disconnectAttr(sphereR, coneR)