コード例 #1
0
ファイル: fromMaya.py プロジェクト: briceFoundry/flix_qa_2
 def addPlayblastCheck(self, duration):
     """After sending a playblast from Maya, this method checks the thumbnails have finished processing, the new panel(s)
     are present in the new saved shotEdit, the multitrack, jpeg, xml and json files have been created for the new
     panel(s).
 
     :param duration: Duration in frames of the playblast sent from Maya
     :return: None
     """
     log('## addPlayblastCheck')
 
     # Need to wait until Flix is done processing, assuming 2 sec/frame for timeout
     timeout = 2*duration
     checkUtils.doneProcessing(self.fromMaya.testInfo, timeout, methodName="addPlayblastCheck")
 
     sikuliUtils.saveVersion(self.fromMaya.testInfo, 'Sent a playblast from Maya.')
 
     # Check there's 1 more panel in the current shotEdit
     newPanel = checkUtils.newPanelsInShotEdit(self.fromMaya.testInfo,
                                               {'a': 1},
                                               beats=['a'],
                                               methodName='addPlayblastCheck')
 
     checkUtils.checkPanelDir(self.fromMaya.testInfo, newPanel, ['multitrack', 'jpg', 'xml', 'json'], 'addPlayblastCheck')
 
     expectedDur = self.fromMaya.testInfo.editDuration + duration
     foundDur = self.fromMaya.testInfo.getDurationFromShotEdit()
     if foundDur != expectedDur:
         self.fromMaya.testInfo.failed('addPlayblastCheck: Expected duration to be %s, is %s instead.' % (expectedDur, foundDur))
     else:
         log('- Edit duration increased by %s frames as expected.' % duration)
     self.fromMaya.testInfo.editDuration = foundDur
 
     log('All checks performed for addPlayblast.')    
コード例 #2
0
ファイル: fromMaya.py プロジェクト: briceFoundry/flix_qa_2
 def replaceSequencerShotCheck(self, duration):
     """After replacing a Flix panel with a shot from Maya, this method checks the thumbnails have finished processing,
     the new panel(s) are present in the new saved shotEdit, the multitrack, jpeg, xml and json files have been created
     for the new panel(s).
 
     :param duration: Total duration in frames of the shot sent from Maya
     :return: None
     """
     log('## replaceSequencerShotCheck')
 
     # Need to wait until Flix is done processing, assuming 2 sec/frame for timeout
     timeout = 2*duration
     checkUtils.doneProcessing(self.fromMaya.testInfo, timeout, methodName="replaceSequencerShotCheck")
 
     sikuliUtils.saveVersion(self.fromMaya.testInfo, 'Replaced a panel by an animated panel from Maya.')
 
     # Check there's not more panels in the current shotEdit
     newPanel = checkUtils.newPanelsInShotEdit(self.fromMaya.testInfo,
                                               {'a': 0},
                                               methodName='replaceSequencerShotCheck',
                                               beats=['a'])
 
     checkUtils.checkPanelDir(self.fromMaya.testInfo, newPanel, ['multitrack', 'jpg', 'xml', 'json'], 'replaceSequencerShotCheck')
 
     expectedDur = self.fromMaya.testInfo.editDuration
     foundDur = self.fromMaya.testInfo.getDurationFromShotEdit()
     if foundDur != expectedDur:
         self.fromMaya.testInfo.failed('replaceSequencerShotCheck: Expected duration to be %s, is %s instead.' % (expectedDur, foundDur))
     else:
         log('- Edit duration unchanged as expected.')
     self.fromMaya.testInfo.editDuration = foundDur
 
     log('All checks performed for replaceSequencerShot.')    
コード例 #3
0
ファイル: fromMaya.py プロジェクト: briceFoundry/flix_qa_2
 def replaceStillCheck(self):
     """After replacing a panel from Maya, this method checks the thumbnails have finished processing, the new panel(s)
     are present in the new saved shotEdit, the multitrack, jpeg, xml and json files have been created for the new
     panel(s).
 
     :return: None
     """
     log('## replaceStillCheck')
 
     # Need to wait until Flix is done processing
     checkUtils.doneProcessing(self.fromMaya.testInfo, 10, methodName="replaceStillCheck")
 
     sikuliUtils.saveVersion(self.fromMaya.testInfo, 'Replaced a panel by a still from Maya.')
 
     # Check there's not more panels in the current shotEdit
     newPanels = checkUtils.newPanelsInShotEdit(self.fromMaya.testInfo,
                                                {'s': 0},
                                                methodName='replaceStillCheck',
                                                beats=['s'])
 
     checkUtils.checkPanelDir(self.fromMaya.testInfo, newPanels, ['multitrack', 'jpg', 'xml', 'json'], 'replaceStillCheck')
 
     expectedDur = self.fromMaya.testInfo.editDuration
     foundDur = self.fromMaya.testInfo.getDurationFromShotEdit()
     if foundDur != expectedDur:
         self.fromMaya.testInfo.failed('replaceStillCheck: Expected duration to be %s, is %s instead.' % (expectedDur, foundDur))
     else:
         log('- Edit duration unchanged as expected.')
     self.fromMaya.testInfo.editDuration = foundDur
 
     log('All checks performed for replaceStill.')    
コード例 #4
0
ファイル: fromMaya.py プロジェクト: briceFoundry/flix_qa_2
 def addStillsCheck(self, frames):
     """After sending a still from Maya to Flix, this method checks the thumbnail has stopped processing, the new
     panel(s) are present in the saved shotEdit, the multitrack, jpeg, xml and json files have been created for the
     new panel(s).
 
     :param frames: List of all the frames to be sent from Maya to Flix
     :return: None
     """
     log('## addStillsCheck')
 
     # Need to wait until Flix is done processing
     checkUtils.doneProcessing(self.fromMaya.testInfo, 10, methodName="addStillsCheck")
 
     sikuliUtils.saveVersion(self.fromMaya.testInfo, 'Sent %s stills from Maya.' % len(frames))
 
     # Check there's len(frames) more panels in the current shotEdit
     newPanels = checkUtils.newPanelsInShotEdit(self.fromMaya.testInfo,
                                                {'s': len(frames)},
                                                beats=['s'],
                                                methodName='addStillsCheck')
 
     checkUtils.checkPanelDir(self.fromMaya.testInfo, newPanels, ['multitrack', 'jpg', 'xml', 'json'], 'addStillsCheck')
 
     expectedDur = self.fromMaya.testInfo.editDuration + (12*len(frames))
     foundDur = self.fromMaya.testInfo.getDurationFromShotEdit()
     if foundDur != expectedDur:
         self.fromMaya.testInfo.failed('addStillsCheck: Expected duration to be %s, is %s instead.' % (expectedDur, foundDur))
     else:
         log('- Edit duration increased by %s frames as expected.' % (12*len(frames)))
     self.fromMaya.testInfo.editDuration = foundDur
 
     log('All checks performed for addStills.')