Go to: Synopsis. Return value. Related. Flags. Python examples.
disconnectJoint([attachHandleMode=boolean], [deleteHandleMode=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
disconnectJoint is undoable, NOT queryable, and NOT editable.
This command will break a skeleton at the selected joint and delete any associated handles.
| string | After the joint is disconnected, a new joint will be created. The return value is the name of the newly created joint and its ancestor. |
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
attachHandleMode(ahm)
|
boolean
|
|
||
|
||||
deleteHandleMode(dhm)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds cmds.joint( p=(0, 0, 0), name='jointA' ) cmds.joint( p=(0, 1, 0), name='jointB' ) cmds.joint( p=(0, 2, 0), name='jointC' ) cmds.disconnectJoint( 'jointB' )