This workshop includes all the basic information you should know in order to be proficient in reading, writing, running, and modifying Python scripts. You will not learn everything about Python from this workshop. By the end of this workshop, you will have the knowledge to write and run Python scripts inside and outside of Maya. SqBindPose.store_pose(pymel.PyNode(item))Ĭmds.setAttr(masterGrp ".controlList", ctrlString, type="string")Ĭmds.setAttr(masterGrp ".This workshop is geared towards students with little to no scripting/programming experience. If sqBindPose.is_pose_outdated(nCurNode): (cmds.getAttr(nodeItem "." masterGrpAttr, type=True) = "bool" or \Ĭmds.getAttr(nodeItem "." masterGrpAttr, type=True) = "long") and \Ĭmds.getAttr(nodeItem "." masterGrpAttr) = 1: If cmds.objExists(nodeItem "." masterGrpAttr) and \ # add selected items in the empyt target scroll listĬmds.textScrollList(self.targetScrollList, edit=True, append=selMeshList) # check if there is any selected object in order to continueĬurrentList = cmds.textScrollList(self.targetScrollList, query=True, allItems=True)Ĭmds.textScrollList(self.targetScrollList, edit=True, removeAll=True)Ĭmds.textScrollList(self.targetScrollList, edit=True, append=currentList) """ Add selected items to target textscroll list SortedJointList = utils.filterName(jointName, jointList, " ")Ĭmds.textScrollList( self.allUIs, edit=True, removeAll=True)Ĭmds.textScrollList( self.allUIs, edit=True, append=sortedJointList) JointName = cmds.textField(self.allUIs, query=True, text=True) If cmds.objExists(jointNode '.' BASE_NAME 'joint'): JntSelectedRadioButton = cmds.radioCollection(self.allUIs, query=True, select=True)ĬhooseJnt = cmds.radioButton(jntSelectedRadioButton, query=True, annotation=True)ĪllJointList = cmds.ls(selection=False, type="joint")Ĭmds.checkBox(self.allUIs, edit=True, enable=False)Ĭmds.checkBox(self.allUIs, edit=True, enable=True)ĭisplayJnt = cmds.checkBox(self.allUIs, query=True, value=True)ĭisplayJis = cmds.checkBox(self.allUIs, query=True, value=True) # get current jointType (all or just dpAutoRig joints): """ This function is responsable to list all joints or only dpAR joints in the interface in order to use in skinning. # working about action to do, like new control, add shape or replace shapes: tControlDirection(self.cvCurve, self.cvDirection) # set control direction for the control curve: Self.cvCurve = self.createCurve(self.cvName, self.cvDegree, self.cvPointList, self.cvKnotList, self.cvPeriodic, dpGuide) # getting curve info to be created based on choose degree: Self.cvCurve = self.generateCombineCurves(useUI, self.cvID, self.cvName, self.cvSize, self.cvDegree, self.cvDirection) # combine or create curve using the parameters: Self.cvName = utils.validateName(cvName, self.suffix) # check if the given name is good or add a sequencial number on it: Return the transform curve or a list of selected destination items.ĭestinationList = cmds.ls(selection=True, type="transform") """ Check if we need to get parameters from UI. Def cvCreate(self, useUI, cvID, cvName='Control_Ctrl', cvSize=1.0, cvDegree=1, cvDirection=' Y', cvRot=(0, 0, 0), cvAction=1, dpGuide=False, combine=False, *args):
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |