def createIkHindLegJoint(self): # 조인트를 만들고 리스트를 만듬 for x in range( len(self.hindLegTempJointList) ): RN = self.hindLegTempJointList[x].replace( 'template', 'IK' ) ikJoint = cmds.joint( n=RN ) self.IkHindLegJointList.append( ikJoint ) POsnap( ikJoint, self.hindLegTempJointList[x] ) zeroRotJoint( self.IkHindLegJointList )
def quadrupedSpineRun(): # Run command IS = ikSpine() IS.createIkSpineJoint() ################################################################ targetObject = getAssetRoot() ################################################################ #rootJointSelect = cmds.ls( sl=True ) cmds.select(targetObject, hi=True) jointList = cmds.ls(sl=True, typ='joint') zeroRotJoint(jointList) ################################################################ IS.createIkSpineController() IS.createIkSpineSet()
def ikSpineOP(): # Run command cmds.select(cl=1) IS = ikSpineClass() IS.createIkSpineJoint() ################################################################ targetObject = getAssetRoot() ################################################################ #rootJointSelect = cmds.ls( sl=True ) cmds.select(targetObject, hi=True) jointList = cmds.ls(sl=True, typ='joint') zeroRotJoint(jointList) ################################################################ IS.createIkSpineController() IS.createIkSpineSet()
def createIkForeLegJoint(self): # 조인트를 만들고 리스트를 만듬 for x in range(len(self.clavicleTempJointList)): RN = self.clavicleTempJointList[x].replace('template', 'IK') ikJoint = cmds.joint(n=RN) self.clavicleIkJointList.append(ikJoint) POsnap(ikJoint, self.clavicleTempJointList[x]) print self.clavicleTempJointList zeroRotJoint(self.clavicleIkJointList) cmds.select(cl=True) print '_____________________________________________________________________________________________________________________________________________________________________________' for x in range(len(self.foreLegTempJointList)): RN = self.foreLegTempJointList[x].replace('template', 'IK') ikJoint = cmds.joint(n=RN) self.IkForeLegJointList.append(ikJoint) POsnap(ikJoint, self.foreLegTempJointList[x]) zeroRotJoint(self.IkForeLegJointList) print self.clavicleIkJointList, self.IkForeLegJointList print '_____________________________________________________________________________________________________________________________________________________________________________'