Beispiel #1
0
  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)
Beispiel #2
0
    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)
Beispiel #3
0
  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)      
Beispiel #4
0
  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()
Beispiel #5
0
  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)
Beispiel #6
0
    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)
Beispiel #7
0
    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()
Beispiel #8
0
    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)