import maya.cmds as cmds

def CreateJoints():
    SelectedObject = cmds.ls(sl = True)
    for item in SelectedObject:
        bbox = cmds.exactWorldBoundingBox(calculateExactly=True)
        cmds.joint()
        cmds.parent( 'SelectedObject|joint', removeObject=True)
        cmds.joint()
        #for joint hierarchy use index? 
        
        

03a8973987aa79ca9b8512f851ca6821765ef1e7
<mask token>

<mask token>


def CreateJoints():
    SelectedObject = cmds.ls(sl=True)
    for item in SelectedObject:
        bbox = cmds.exactWorldBoundingBox(calculateExactly=True)
        cmds.joint()
        cmds.parent('SelectedObject|joint', removeObject=True)
        cmds.joint()

import maya.cmds as cmds


def CreateJoints():
    SelectedObject = cmds.ls(sl=True)
    for item in SelectedObject:
        bbox = cmds.exactWorldBoundingBox(calculateExactly=True)
        cmds.joint()
        cmds.parent('SelectedObject|joint', removeObject=True)
        cmds.joint()

import maya.cmds as cmds

def CreateJoints():
    SelectedObject = cmds.ls(sl = True)
    for item in SelectedObject:
        bbox = cmds.exactWorldBoundingBox(calculateExactly=True)
        cmds.joint()
        cmds.parent( 'SelectedObject|joint', removeObject=True)
        cmds.joint()
        #for joint hierarchy use index? 
        
        
