from maya.cmds import *
from YJ_NameTool import *
def Yj_Reset_JntSuf ( in_List ):
CurList = []
for i in in_List :
if i [ - 5 :] != '_skin' :
New_List = [ i ]
CurCh = i + '_skin'
YJ_Add_Suffix ( '_skin' , New_List , 1 )
CurList . append ( CurCh )
return CurList
def YJ_GetBaseJntList ( StarBaseJnt , EndBaseJnt ):
AllBaseJntList = []
JudgeJnt = StarBaseJnt
while JudgeJnt != EndBaseJnt :
AllBaseJntList . append ( JudgeJnt )
JudgeJnt = listRelatives ( JudgeJnt , c = 1 , typ = 'joint' )
if len ( JudgeJnt ) != 0 :
JudgeJnt = JudgeJnt [ - 1 ]
if JudgeJnt == None and len ( AllBaseJntList ) == 1 :
AllBaseJntList = []
break
如果 len个(AllBaseJntList ) =! 0 :
AllBaseJntList 。追加(EndBaseJnt )
返回 AllBaseJntList
YJ_Rig_Pub
最新推荐文章于 2020-11-22 14:07:38 发布