# Renombra el label automaticamente
all_joints = cmds.ls(type = 'joint')
for jnt in all_joints:
jnt_side = jnt.split('_')[1]
if jnt_side == 'c':
cmds.setAttr('{}.side'.format(jnt), 0)
elif jnt_side == 'l':
cmds.setAttr('{}.side'.format(jnt), 1)
elif jnt_side == 'r':
cmds.setAttr('{}.side'.format(jnt), 2)
else:
print 'The name of the bones is wrong'
cmds.setAttr('{}.type'.format(jnt), 18)
type_name = '{}{}'.format(jnt.split('_')[0], jnt.split('_')[2].capitalize())
cmds.setAttr('{}.otherType'.format(jnt), type_name, type = 'string')
0respuestas sobre "Renombrado Label Huesos"