![maya python ls for unused nodes maya python ls for unused nodes](http://shining-lucy.com/wiki/lib/exe/fetch.php?w=400&tok=3e71f4&media=graphic:python:maya:mathproof_cosa_b.png)
"""Create and return a cvJointLocator curve to be usually used in the guideSystem and the clusterHandle to shapeSize.ĬvLoc = self.cvLocator(ctrlName+"_CvLoc", r, d)ĬvArrow1 = cmds.curve(n=ctrlName+"_CvArrow1", d=3, p= )ĬvArrow2 = cmds.curve(n=ctrlName+"_CvArrow2", d=3, p= )ĬvArrow3 = cmds.curve(n=ctrlName+"_CvArrow3", d=3, p= )ĬvArrow4 = cmds.curve(n=ctrlName+"_CvArrow4", d=3, p= )ĬvArrow5 = cmds.curve(n=ctrlName+"_CvArrow5", d=1, p= )ĬvArrow6 = cmds.curve(n=ctrlName+"_CvArrow6", d=1, p= ) Mel.eval("warning \"Please, select a tranform node, vertices or lattice points in order to add it in the item list.\" ")ĭef cvJointLoc(self, ctrlName, r=0.3, d=1, rot=(0, 0, 0), guide=True, *args): # add selected items in the empyt target scroll listĬmds.textScrollList(emScrollList, edit=True, append=selItemList) # check if there is any selected object in order to continueĮlif ".vtx" in item or ".cv" in item or ".pt" in item:ĬurrentList = cmds.textScrollList(emScrollList, query=True, allItems=True)Ĭmds.textScrollList(emScrollList, edit=True, removeAll=True)Ĭmds.textScrollList(emScrollList, 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)ĭef dpAddSelect(self, sList=None, *args): 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. Return ĭef 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): Self.cvDirection = cmds.optionMenuGrp(, query=True, value=True) Self.cvSize = cmds.floatSliderGrp(, query=True, value=True) Self.cvAction = cmds.radioButtonGrp(, query=True, select=True)ĭegreeRBGValue = cmds.radioButtonGrp(, query=True, select=True) # here we will use all info from UI elements in order to call the correct action to do:ĬustomName = cmds.textFieldGrp(, query=True, text=True) """ Check and get all UI values to define variables. You will find this node in the channelBox when you select the curve.Def getControlUIValues(self, cvName='', *args): Shape = cmds.listRelatives(circle, c=True)Īfter running this script you can edit the curves radius, normal and other settings on the makeNurbCircle node. This also make pick-walking more intuitive. Because of this you do not need an extra transform in between every curve. Since the transform still is a joint, you can freeze the rotate attributes without loosing the joints orient (joints has a spesial joint orient attribute). When doing this, you can animate directly on the joints, but they will look like curves in the viewport. In this example I’m parenting a nurbs curve to a joint transform. This is an example of how you can move a shapes from one transform to another.