Пример #1
0
def shotgungGetTaskList(): 
    steps = []
    
    try:
        dloPyQtUtil.dloQtWaiCursor(1)
        shotgunSteps = mShotgunUtils.buildStepNameFilter()
        dloPyQtUtil.dloQtWaiCursor(0)
        
        for i in range(len(shotgunSteps)): steps.append(shotgunSteps[i]['code'])
        steps = list(set(steps))
        steps.sort()
    
    except: dloPyQtUtil.dloQtWaiCursor(0)

    return steps
Пример #2
0
 def addTaskEmail(self):
     import tdShotgun.tdShotgunAssignments as mShotgunAssignments
     
     task = str(self.taskComboBox.currentText())
     currentList = str(self.toLineEdit.text())
     
     try:
         print "Getting shotgun artist assignment for: %s %s %s" %(self.currentShow, self.currentShot, task)
         
         dloPyQtUtil.dloQtWaiCursor(1)
         emailList = mShotgunAssignments.getArtistEmailList(job=self.currentShow, shots=[self.currentShot], steps=[task])
         dloPyQtUtil.dloQtWaiCursor(0)
         
         if len(emailList):
             emailArtists = ",".join([each.replace("@methodstudios.com", "") for each in emailList])
             
             if len(currentList): currentList += "," + emailArtists
             else: currentList += emailArtists
             
             self.toLineEdit.setText(currentList)
     except:
         dloPyQtUtil.dloQtWaiCursor(0)
         QMessageBox.question(self, "Warning", "No artists found for task %s under %s" %(task, self.currentShot), QMessageBox.Ok)