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.

Return value

stringAfter you disconnect the Joint, a new joint will be created. The return value is the name of the new created joint and it's ancestor


connectJoint, insertJoint, joint, mirrorJoint, reroot


attachHandleMode, deleteHandleMode
Long name (short name) Argument types Properties
deleteHandleMode(dhm) boolean create
Delete the handle on the associated joint.
attachHandleMode(ahm) boolean create
This flag is obsolete and no longer supported.

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.

Python examples

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' )