Go to: Synopsis. Return value. Related. Python examples.
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
insertJoint is undoable, NOT queryable, and NOT editable.This command will insert a new joint under the given or selected joint. If the given joint has child joints, they will be reparented under the new inserted joint. The given joint(or selected joint) should not have skin attached. The command works on the selected joint. No options or flags are necessary.
|string||The name of the new inserted joint|
import maya.cmds as cmds # Will insert a new joint under joint2. Child joints of joint2 will be # under the new inserted joint. cmds.insertJoint( 'joint2' )