Exemplo n.º 1
0
 def func_projCombo(self):
     self.projIndex = self.projCombo.currentIndex()
     
     self.scnRawCode = createXML.deCode(find = "SceneFileName")[self.projIndex ]        
     self.scnFileName=decode.dollarDecode(raw=self.scnRawCode)
     
     self.sceneCode = [ q for q in self.scnFileName if "scn" ==q[0]][0][1]
     self.shotsCode = [ q for q in self.scnFileName if "sht" ==q[0]][0][1]
     self.versionCode = [ q for q in self.scnFileName if "ver" ==q[0]][0][1]
     
     self.scnFolder = cmds.workspace(fre="scene")
     if ";" in self.scnFolder:
         self.scnFolder = cmds.workspace(fre="scene").split(";")
     PL.layoutSetupClass().projSelection(self)
     PFile.fileLoaderClass().findSceneFolders(self)
     
     self.pbMaskCode = createXML.deCode(find = "maskCode")[self.projIndex ]
     self.pbMaskInfo=decode.dollarDecode(raw=self.pbMaskCode,split=";") 
     playblastTool.customPBMask().initialPBMask(self)             
Exemplo n.º 2
0
    def __init__(self, parent = getMayaWindow()):
        '''
        Initialize
        '''
        super(pipeWindow,self).__init__(parent)
        self.setupUi(self)
        self.setObjectName('pipe_window')
        self.project = ""
        self.projIndex = self.projCombo.currentIndex()
        
        self.scnRawCode = createXML.deCode(find = "SceneFileName")[self.projIndex]        
        self.scnFileName=decode.dollarDecode(raw=self.scnRawCode)
        
        self.sceneCode = [ q for q in self.scnFileName if "scn" ==q[0]][0][1]
        self.shotsCode = [ q for q in self.scnFileName if "sht" ==q[0]][0][1]
        self.versionCode = [ q for q in self.scnFileName if "ver" ==q[0]][0][1]
        self.oriHud = playblastTool.customPBMask().oriHudStatus()
        #################################################################################
        ##Create connections                                                           ##
        #################################################################################
        
        self.projCombo.clear()
        self.project = createXML.deCode(find="Project")
        self.scnFolder = cmds.workspace(fre="scene")
        
        for combo in self.project:
            self.projCombo.addItem(combo)
        
        self.projCombo.currentIndexChanged.connect(self.func_projCombo)
        #self.projCombo.setCurrentIndex(1)
        
        #Layout Setup Tab(r"%0"+str(6)+"d") % 1
        #self.SceneCombo.addItems([(r"%0"+str(self.sceneCode.split("$F")[-1])+"d") % i for i in range(1,100)]) #For Scene Combo on Layout Setup Tab
        #self.ShotsCombo.addItems([(r"%0"+str(self.shotsCode.split("$F")[-1])+"d") % i for i in range(1,100)])
        
        self.directory = createXML.deCode(find = "Directory")
        #self.projIndex = self.projCombo.currentIndex()

        self.assetTypeCombo.currentIndexChanged.connect(self.func_assetTypeCombo)
        
        #Add file names into list of selected assets column
        self.ModelsRigsCol.itemDoubleClicked.connect(self.func_ModelsRigsCol)
        self.addAssetBt.clicked.connect(self.func_ModelsRigsCol)
        
        #Remove file names from list of selected assets column
        self.SelectedAssetsCol.itemDoubleClicked.connect(self.func_delAssetBt)
        self.delAssetBt.clicked.connect(self.func_delAssetBt)
        
        #Clear all items in the list of selected assets column
        self.resetBt.clicked.connect(self.func_resetBt)
        
        #Duplciate all selected items in the list of selected assets column
        self.dupAssetBt.clicked.connect(self.func_dupAssetBt)
        
        #Reference
        self.referenceBt.clicked.connect(self.func_referenceBt)
        
        #Playblast Mask Function
        self.bt_PBM0.clicked.connect(self.func_bt_PBM0)
        self.bt_PBM2.clicked.connect(self.func_bt_PBM2)
        self.bt_PBM4.clicked.connect(self.func_bt_PBM4)        
        self.bt_PBM5.clicked.connect(self.func_bt_PBM5)
        self.bt_PBM7.clicked.connect(self.func_bt_PBM7)
        self.bt_PBM9.clicked.connect(self.func_bt_PBM9)
        
        self.bt_TogglePBM.clicked.connect(self.func_bt_TogglePBM)
        self.bt_loadPBM.clicked.connect(self.func_bt_loadPBM)
        self.bt_resetPBM.clicked.connect(self.func_bt_resetPBM)
        
        #Overwrite Checkbox
        self.overwriteChbox.setChecked(False)
        
        ###################################################################################
        ##Create Layout and Dock Control                                                 ##
        ###################################################################################
        if cmds.dockControl('pipeDock', q=1, ex=1):
            cmds.deleteUI('pipeDock')#cmds.deleteUI('dockPane')

        self.pane = cmds.paneLayout('dockPane',cn='single')
        cmds.dockControl('pipeDock',con=self.pane , area = 'right',allowedArea = ['right','left'],label = "ANMD_Pipeline",w=365)
        cmds.control( 'pipe_window', e = True, p = self.pane)
        
        self.projCombo.addItem("useless")
        self.projCombo.setCurrentIndex(1)
        self.projCombo.setCurrentIndex(0)
        self.projCombo.removeItem(self.projCombo.count()-1)
Exemplo n.º 3
0
 def func_bt_resetPBM(self):
     playblastTool.customPBMask().PBrefresh(self,reset=1)
Exemplo n.º 4
0
 def func_bt_loadPBM(self):
     playblastTool.customPBMask().PBrefresh(self)
Exemplo n.º 5
0
 def func_bt_TogglePBM(self):
     playblastTool.customPBMask().pbSwitch(self)
Exemplo n.º 6
0
 def func_bt_PBM9(self):
     playblastTool.customPBMask().pbButton(self,maskInd=9)