Example #1
0
    def __init__(self, parent=uiTool.getMayaWindow()):

        super(MODELInterceptTool, self).__init__(parent)
        self.setupUi(self)
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
        self.setMaximumHeight(376)
        self.setMaximumWidth(200)

        self.setWindowIcon(QtGui.QIcon("%s/bullet_deny.png" % uiPath))

        for btn in self.findChildren(QtGui.QPushButton,
                                     QtCore.QRegExp("check\d+Btn")):
            btn.setIcon(QtGui.QIcon("%s/question.png" % uiPath))
            btn.setStyleSheet('border-image:url(%s/question.png);' % uiPath)

        self.check0Btn.clicked.connect(self.modelHistory)  #物体历史
        self.check1Btn.clicked.connect(self.modelTransform)  #位移变换

        self.checkAllBtn.clicked.connect(self.checkAll)
        self.skipAllBtn.clicked.connect(self.skipAll)

        self.flag0 = None
        self.flag1 = None

        self.model = MODELIntercept()
 def __init__(self, parent = uiTool.getMayaWindow()):
             
     super(MODELInterceptTool, self).__init__(parent)
     self.setupUi(self)
     self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
     self.setMaximumHeight(376)
     self.setMaximumWidth(200)
     
     self.setWindowIcon(QtGui.QIcon("%s/bullet_deny.png" %uiPath))
     
     for btn in self.findChildren(QtGui.QPushButton, QtCore.QRegExp("check\d+Btn")):
         btn.setIcon(QtGui.QIcon("%s/question.png" %uiPath))
         btn.setStyleSheet('border-image:url(%s/question.png);' %uiPath)
     
     
     self.check0Btn.clicked.connect(self.modelHistory)               #物体历史
     self.check1Btn.clicked.connect(self.modelTransform)                #位移变换
     
     self.checkAllBtn.clicked.connect(self.checkAll)
     self.skipAllBtn.clicked.connect(self.skipAll)
     
     self.flag0 = None
     self.flag1 = None
     
     self.model = MODELIntercept()
Example #3
0
 def __init__(self, parent = uiTool.getMayaWindow()):
             
     super(ArnoldTool, self).__init__(parent)
     self.setupUi(self)
     self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
     self.setWindowTitle(u"MS用Arnold设置工具")
             
     self.project_btn.clicked.connect(self.setProjCmd)
     
     self.setRender_btn.clicked.connect(self.setRenderCmd)
     
     self.replace_btn.clicked.connect(self.replaceCmd)
     
     self.import_btn.clicked.connect(self.importCmd)
     
     self.chr_color_btn.clicked.connect(partial(self.createLayerCmd, 'chr_color'))
     
     # add at 2015/12/30
     self.night_chr_color_btn.clicked.connect(partial(self.createLayerCmd, 'night_chr_color'))
     #
     
     self.bg_color_btn.clicked.connect(partial(self.createLayerCmd, 'bg_color'))
     
     self.chr_idp1_btn.clicked.connect(partial(self.createLayerCmd, 'chr_idp1'))
     self.chr_idp2_btn.clicked.connect(partial(self.createLayerCmd, 'chr_idp2'))
     self.chr_idp3_btn.clicked.connect(partial(self.createLayerCmd, 'chr_idp3'))
     
     self.bg_idp1_btn.clicked.connect(partial(self.createLayerCmd, 'bg_idp1'))
     self.bg_idp2_btn.clicked.connect(partial(self.createLayerCmd, 'bg_idp2'))
     self.bg_idp3_btn.clicked.connect(partial(self.createLayerCmd, 'bg_idp3'))
     
     self.idp_r_btn.clicked.connect(partial(self.createShaderCmd, 'R'))
     self.idp_g_btn.clicked.connect(partial(self.createShaderCmd, 'G'))
     self.idp_b_btn.clicked.connect(partial(self.createShaderCmd, 'B'))
     
     self.idp_y_btn.clicked.connect(partial(self.createShaderCmd, 'Y'))
     self.idp_p_btn.clicked.connect(partial(self.createShaderCmd, 'P'))
     self.idp_c_btn.clicked.connect(partial(self.createShaderCmd, 'C'))
     
     self.idp_a_btn.clicked.connect(partial(self.createShaderCmd, 'A'))
     self.idp_maeet_btn.clicked.connect(partial(self.createShaderCmd, 'Maeet'))
     
     self.shadow_btn.clicked.connect(partial(self.createLayerCmd, 'shadow'))
             
     self.rgblight_btn.clicked.connect(partial(self.createLayerCmd, 'RGBlight'))
     
     self.foglight_btn.clicked.connect(partial(self.createLayerCmd, 'FOGlight'))
     
     self.aiOpaque_btn.clicked.connect(partial(self.setAttr, 'aiOpaque'))
     self.castsShadows_btn.clicked.connect(partial(self.setAttr, 'castsShadows'))
     self.primaryVisibility_btn.clicked.connect(partial(self.setAttr, 'primaryVisibility'))
     
     self.netRender_btn.clicked.connect(self.netRenderCmd)
     
     self.deadline_btn.clicked.connect(self.deadlineCmd)
     
     self.initArnold()
Example #4
0
 def __init__(self, parent = uiTool.getMayaWindow()):
             
     super(BeautifyClothToolWin, self).__init__(parent) 
     self.setupUi(self)
     self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
     
     self.createBtn.clicked.connect(self.createCmd)
     self.paintBtn.clicked.connect(self.paintCmd)
     self.bakeBtn.clicked.connect(self.bakeCmd)
     self.deleteBtn.clicked.connect(self.deleteCmd)
     self.allBtn.clicked.connect(self.allCmd)
Example #5
0
    def __init__(self, parent=uiTool.getMayaWindow()):

        super(BeautifyClothToolWin, self).__init__(parent)
        self.setupUi(self)
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)

        self.createBtn.clicked.connect(self.createCmd)
        self.paintBtn.clicked.connect(self.paintCmd)
        self.bakeBtn.clicked.connect(self.bakeCmd)
        self.deleteBtn.clicked.connect(self.deleteCmd)
        self.allBtn.clicked.connect(self.allCmd)
    def __init__(self, parent=uiTool.getMayaWindow()):

        super(ANIMInterceptTool, self).__init__(parent)
        self.setupUi(self)
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
        self.setMaximumHeight(376)
        self.setMaximumWidth(203)

        self.setWindowIcon(QtGui.QIcon("%s/bullet_deny.png" % uiPath))

        for btn in self.findChildren(QtGui.QPushButton,
                                     QtCore.QRegExp("check\d+Btn")):
            btn.setIcon(QtGui.QIcon("%s/question.png" % uiPath))
            btn.setStyleSheet('border-image:url(%s/question.png);' % uiPath)

        self.anim = ANIMIntercept()

        self.check0Btn.clicked.connect(self.checkSceneName)  #文件命名
        self.check1Btn.clicked.connect(self.getAnimCamera)  #相机命名
        self.check2Btn.clicked.connect(self.camLock)  #相机锁定
        self.check3Btn.clicked.connect(self.camScale1)  #相机缩放
        self.check4Btn.clicked.connect(self.getNeedlessCamera)  #多余相机
        self.check5Btn.clicked.connect(self.framesIntercept)  #整理帧数范围
        self.check6Btn.clicked.connect(
            self.displayLayerIntercept)  #删除norender以外的层
        self.check7Btn.clicked.connect(self.clearUpOutliner)  #整理大纲
        self.check9Btn.clicked.connect(self.checkExt)  #检查后缀名
        self.check10Btn.clicked.connect(self.checkResolution)  #检查分辨率
        #self.check8Btn.clicked.connect(self.anim.)                       #删除空组

        self.checkAllBtn.clicked.connect(self.checkAll)
        self.skipAllBtn.clicked.connect(self.skipAll)

        self.flag0 = None
        self.flag1 = None
        self.flag2 = None
        self.flag3 = None
        self.flag4 = None
        self.flag5 = None
        self.flag6 = None
        self.flag7 = None
        self.flag8 = None
        self.flag9 = None
        self.flag10 = None

        self.checkAll()
Example #7
0
def doScale(percent, *args, **kwargs):
    files = getFileNode()
    workspace = kxTool.KXTool().getPorjPath()
    
    percent = percent
    scaled = "_scale_to_%s" %percent
    for f in files:
        imagePath = getImagePath(f)
        if imagePath:
            newPath = setNewPath(imagePath, workspace, scaled)
            scaledImage(f, imagePath, newPath, percent)
            replaceImage(f, newPath)
            
    messageBox = QtGui.QMessageBox(uiTool.getMayaWindow())
    messageBox.setText(u"所选物体的贴图以转换成0.5倍尺寸")
    messageBox.show()
    if pm.window("scaleImageTool", ex = 1):
        pm.deleteUI("scaleImageTool")
Example #8
0
 def __init__(self, parent = uiTool.getMayaWindow()):
             
     super(ANIMInterceptTool, self).__init__(parent)
     self.setupUi(self)
     self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
     self.setMaximumHeight(376)
     self.setMaximumWidth(203)
     
     self.setWindowIcon(QtGui.QIcon("%s/bullet_deny.png" %uiPath))
     
     for btn in self.findChildren(QtGui.QPushButton, QtCore.QRegExp("check\d+Btn")):
         btn.setIcon(QtGui.QIcon("%s/question.png" %uiPath))
         btn.setStyleSheet('border-image:url(%s/question.png);' %uiPath)
     
     self.anim = ANIMIntercept()
     
     self.check0Btn.clicked.connect(self.checkSceneName)               #文件命名
     self.check1Btn.clicked.connect(self.getAnimCamera)                #相机命名
     self.check2Btn.clicked.connect(self.camLock)                      #相机锁定
     self.check3Btn.clicked.connect(self.camScale1)                    #相机缩放
     self.check4Btn.clicked.connect(self.getNeedlessCamera)            #多余相机
     self.check5Btn.clicked.connect(self.framesIntercept)              #整理帧数范围
     self.check6Btn.clicked.connect(self.displayLayerIntercept)        #删除norender以外的层
     self.check7Btn.clicked.connect(self.clearUpOutliner)              #整理大纲
     self.check9Btn.clicked.connect(self.checkExt)                     #检查后缀名
     self.check10Btn.clicked.connect(self.checkResolution)             #检查分辨率
     #self.check8Btn.clicked.connect(self.anim.)                       #删除空组
     
     self.checkAllBtn.clicked.connect(self.checkAll)
     self.skipAllBtn.clicked.connect(self.skipAll)
     
     self.flag0 = None
     self.flag1 = None
     self.flag2 = None
     self.flag3 = None
     self.flag4 = None
     self.flag5 = None
     self.flag6 = None
     self.flag7 = None
     self.flag8 = None
     self.flag9 = None
     self.flag10 = None
     
     self.checkAll()
Example #9
0
 def __init__(self, parent = uiTool.getMayaWindow()):
             
     super(SmoothSetToolWin, self).__init__(parent) 
     self.setupUi(self)
     self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
     self.smoothPushButton.clicked.connect(self.smoothCmd)