def updateFlixSequenceListForShow(self, show): log.info("Getting updated Flix sequence list for show %s" % show) try: self._flixSequences = hiero.core.flixConnection.getSequencesForShow(show) except: print "unable to get Flix sequences for %s - is Flix open?" % show self._flixSequences = [] self._flixSequenceList.clear() for sequence in self._flixSequences: self._flixSequenceList.addItem(sequence)
def updateFlixSequenceListForShow(self, show): log.info("Getting updated Flix sequence list for show %s" % show) try: self._flixSequences = hiero.core.flixConnection.getSequencesForShow( show) except: print "unable to get Flix sequences for %s - is Flix open?" % show self._flixSequences = [] self._flixSequenceList.clear() for sequence in self._flixSequences: self._flixSequenceList.addItem(sequence)
def updateFlixBranchesListForCurrentShowAndSequence(self): """Updates the Branches UI list based on the current show and sequence""" show = self.currentShow() sequence = self.currentSequence() log.info("Getting updated Flix sequence list for show %s and sequence %s" % (show, sequence)) try: self._flixBranches = hiero.core.flixConnection.getSequenceBranchesForShowAndSequence(show, sequence) except: print "unable to get Flix branches for %s - is Flix open?" % show self._flixBranches = [] self._flixBranchList.clear() for branch in self._flixBranches: self._flixBranchList.addItem(branch)
def customFinishTaskHandler(TaskBase, self): log.info("Finished Task") self._finished = True resolvedPath = self.resolvedExportPath() log.info("Resolved Export Path: %s" % resolvedPath) if resolvedPath.endswith('xml'): global gCurrentFlixXML gCurrentFlixXML = resolvedPath if resolvedPath.endswith('mov'): global gCurrentFlixMovie gCurrentFlixMovie = resolvedPath # ANT: THIS IS UGLY AS HELL if os.path.isfile(gCurrentFlixXML) and os.path.isfile(gCurrentFlixMovie): hiero.core.FLIXExporter.dialog.importCurrentSequenceToFlix()
def doit(self): # Prepare list of selected items for export selection = [FLIXExportAction.CustomItemWrapper(item) for item in hiero.ui.activeView().selection()] # Create dialog self.dialog = FLIXExportDialog(selection, self._selectedPresets) # If dialog returns true if self.dialog.exec_(): # Grab list of selected preset names self._selectedPresets = self.dialog.presets() for presetName in self._selectedPresets: # Grab preset from registry preset = hiero.core.taskRegistry.processorPresetByName(presetName) # Launch export log.info("executing preset: %s with selection %s" % (preset, selection)) hiero.core.res = hiero.core.taskRegistry.createAndExecuteProcessor(preset, selection)
def updateFlixBranchesListForCurrentShowAndSequence(self): """Updates the Branches UI list based on the current show and sequence""" show = self.currentShow() sequence = self.currentSequence() log.info( "Getting updated Flix sequence list for show %s and sequence %s" % (show, sequence)) try: self._flixBranches = hiero.core.flixConnection.getSequenceBranchesForShowAndSequence( show, sequence) except: print "unable to get Flix branches for %s - is Flix open?" % show self._flixBranches = [] self._flixBranchList.clear() for branch in self._flixBranches: self._flixBranchList.addItem(branch)
def customFinishTaskHandler(TaskBase, self): log.info("Finished Task") self._finished = True resolvedPath = self.resolvedExportPath() log.info("Resolved Export Path: %s" % resolvedPath) if resolvedPath.endswith('xml'): global gCurrentFlixXML gCurrentFlixXML = resolvedPath if resolvedPath.endswith('mov'): global gCurrentFlixMovie gCurrentFlixMovie = resolvedPath # ANT: THIS IS UGLY AS HELL if os.path.isfile(gCurrentFlixXML) and os.path.isfile( gCurrentFlixMovie): hiero.core.FLIXExporter.dialog.importCurrentSequenceToFlix()
def doit(self): # Prepare list of selected items for export selection = [ FLIXExportAction.CustomItemWrapper(item) for item in hiero.ui.activeView().selection() ] # Create dialog self.dialog = FLIXExportDialog(selection, self._selectedPresets) # If dialog returns true if self.dialog.exec_(): # Grab list of selected preset names self._selectedPresets = self.dialog.presets() for presetName in self._selectedPresets: # Grab preset from registry preset = hiero.core.taskRegistry.processorPresetByName( presetName) # Launch export log.info("executing preset: %s with selection %s" % (preset, selection)) hiero.core.res = hiero.core.taskRegistry.createAndExecuteProcessor( preset, selection)