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.
reroot is undoable, NOT queryable, and NOT editable.This command will reroot a skeleton. The selected joint or the given joint at the command line will be the new root of the skeleton. All ikHandles passing through the selected joint or above it will be deleted. The given(or selected) joint should not have skin attached. The command works on the given or selected joint. No options or flags are necessary.
import maya.cmds as cmds # joint5 will be a new root joint of the skeleton. cmds.reroot( 'joint5' )