def new_joint_bind_at_center(tform, *args):
"""
create a new joint at the boudnign box center of pts and bind all pts to 1
:param tform - string - the geo to bind
:param args:
:return: string - skinCluster
"""
cmds.select(cl=True)
jnt = cmds.joint(name="{0}_base_JNT".format(tform))
center = bounding_box_center(tform)
cmds.xform(jnt, ws=True, t=center)
skinCl = cmds.skinCluster(jnt, tform, normalizeWeights=1)[0]
return(jnt, skinCl)
评论列表
文章目录