def __init__(self, parent = psUtil.getMayaWindow()): super(ColorOverride, self).__init__(parent) self.setupUi(self) self.colorList = self.getColorList() self.defaultColorList = [17, 13, 6, 3] self.connectUi()
def __init__(self, parent=psUtil.getMayaWindow()): super(ColorOverride, self).__init__(parent) self.setupUi(self) self.colorList = self.getColorList() self.defaultColorList = [17, 13, 6, 3] self.connectUi()
def __init__(self, parent = psUtil.getMayaWindow()): super(JointOrient, self).__init__(parent) self.setupUi(self) self.connectUi() self.locatorUpStr = "_up_locator"; self.locatorAimStr = "_aim_locator"; self.jointDict = {}
TITLE = "Color Override" DESCRIPTION = "Helps with color override" IMAGE = "commandButton.png" RUN_COMMAND = "import ColorOverride as co; reload(co); co.main();" ICON_LABEL = "Color" import os import maya.cmds as cmds import PySideUtil as psUtil reload(psUtil) from functools import partial thisdirectory = os.path.dirname(os.path.realpath(__file__)) uiFile = os.path.join(thisdirectory, "ui", "ColorOverride.ui") form_class, base_class = psUtil.loadUiType(uiFile) class ColorOverride(base_class, form_class): def __init__(self, parent=psUtil.getMayaWindow()): super(ColorOverride, self).__init__(parent) self.setupUi(self) self.colorList = self.getColorList() self.defaultColorList = [17, 13, 6, 3] self.connectUi() def connectUi(self): self.defaultColor0Button.pressed.connect( partial(self.setColor, self.defaultColorList[0])) self.defaultColor1Button.pressed.connect( partial(self.setColor, self.defaultColorList[1]))
def __init__(self, parent = psUtil.getMayaWindow()): super(NameHelper, self).__init__(parent) self.setupUi(self) self.connectUi()
TITLE = "Name Helper" DESCRIPTION = "Helps rename selected objects." IMAGE = "commandButton.png" RUN_COMMAND = "import NameHelper as nh; reload(nh); nh.main();" ICON_LABEL = "Name" import os import maya.cmds as cmds import PySideUtil as psUtil reload(psUtil) from functools import partial thisdirectory = os.path.dirname(os.path.realpath(__file__)) uiFile = os.path.join(thisdirectory, "ui", "NameHelper.ui") form_class, base_class = psUtil.loadUiType(uiFile) class NameHelper(base_class, form_class): def __init__(self, parent = psUtil.getMayaWindow()): super(NameHelper, self).__init__(parent) self.setupUi(self) self.connectUi() def connectUi(self): self.suffixAddButton.pressed.connect(partial(self.suffix, "add")) self.suffixRemoveButton.pressed.connect(partial(self.suffix, "delete")) self.renameButton.pressed.connect(self.rename) self.numerateButton.pressed.connect(self.numerate)
def __init__(self, parent=psUtil.getMayaWindow()): super(NameHelper, self).__init__(parent) self.setupUi(self) self.connectUi()