# set the backGround of the button in UI:Ĭmds.button(lorButton, edit=True, backgroundColor=lorList)Ĭmds.deleteUI(self.dpColorIndexWin, window=True) """ Receives the colorIndex to set the backgroudColor of the module layout and set the overrideColor attribute of the moduleGrp.Ĭmds.setAttr(self.moduleGrp+'.overrideEnabled', 1)Ĭmds.setAttr(self.moduleGrp+'.overrideColor', colorIndex)Ĭmds.setAttr(self.moduleGrp+'.guideColor', colorIndex) Print self.langDicĭef setColorModule(self, colorIndex, *args): Self.dpCopySkin(sourceItem, destinationList, skinInfList) SkinInfList = cmds.skinCluster(sourceItem, query=True, influence=True) # check if there's a skinCluster node connected to the first selected itemĬheckSkin = self.dpCheckSkinCluster(shapeList) ShapeList = cmds.listRelatives(sourceItem, shapes=True)
#Maya python setattr on multiple objects skin#
""" Main function to analise and call copy skin process. HistoryList = cmds.listHistory(childList)ĭialogReturn = nfirmDialog(title=self.langDic, message=self.langDic+"\n\n"+item+"\n\n"+self.langDic, button=, defaultButton='Yes', cancelButton='No', dismissString='No') If cmds.checkBox(self.checkHistor圜B, query=True, value=True): If itemType = "mesh" or itemType = "nurbsSurface" or itemType = "subdiv": ChildList = cmds.listRelatives(item, children=True)