#外挂 镜像loc 前缀 lf 镜像给 rt 选中其中一个会镜像另一个
myPrefix='lf_'
myMdf='rt_'
myselectLoc=mc.ls(sl=1)
for c in myselectLoc:
myCurrentLoc=c
myNeedMdfLoc=c.replace(myPrefix,myMdf)
myNewPosLoc=mc.duplicate(c,rr=1,n='tempWillDelete')[0]
mc.select(cl=1)
myJnt=mc.joint(n=myNewPosLoc+'_jnt')
myCons=mc.parentConstraint(myNewPosLoc,myJnt, weight= 1)
mc.delete(myCons)
myNewMirJnt=mc.mirrorJoint(myJnt, mirrorYZ =1,mirrorBehavior=1 ,searchReplace =(myPrefix, myMdf) )
myCons=mc.parentConstraint(myNewMirJnt,myNeedMdfLoc, weight= 1)
mc.delete(myCons)
mc.delete(myJnt)
mc.delete(myNewMirJnt)
mc.delete(myNewPosLoc)
欢迎交流
VX:27971533