Ejemplo n.º 1
0
 def __init__(self, preset, submission=None, synchronous=False):
     FnShotProcessor.ShotProcessor.__init__(self, preset, submission,
                                            synchronous)
     self.session = None
     events.registerInterest(events.EventType.kLoadedKitsuSession,
                             self.getSession)
     events.sendEvent(events.EventType.kRequestKitsuSession, None)
Ejemplo n.º 2
0
 def __init__(self):
   # hiero doesn't deal with drag and drop for text/plain data, so tell it to allow it
   hiero.ui.registerBinViewCustomMimeDataType(BinViewDropHandler.kTextMimeType)
   
   # register interest in the drop event now
   registerInterest((EventType.kDrop, EventType.kBin), self.dropHandler)
   self.importer = FCPXImporter()
Ejemplo n.º 3
0
    def __init__(self):
        # hiero doesn't deal with drag and drop for text/plain data, so tell it to allow it
        hiero.ui.registerBinViewCustomMimeDataType(
            BinViewDropHandler.kTextMimeType)

        # register interest in the drop event now
        registerInterest((EventType.kDrop, EventType.kBin), self.dropHandler)
        self.importer = FCPXImporter()
Ejemplo n.º 4
0
 def __init__(self, preset):
     ShotProcessorUI.__init__(self, preset)
     self.auto_detect = True
     self.session = None
     self.selectedRow = -1
     self.selectedData = None
     self.kitsu_supported_files = ('png', 'jpg', 'mp4', 'mov', 'obj', 'pdf',
                                   'ma', 'mb', 'zip', 'rar', 'jpeg', 'svg',
                                   'blend', 'wmv', 'm4v', 'ai', 'comp',
                                   'exr', 'psd', 'hip', 'gif', 'ae', 'fla',
                                   'flv', 'swf')
     self.session = None
     events.registerInterest(events.EventType.kLoadedKitsuSession,
                             self.getSession)
     events.sendEvent(events.EventType.kRequestKitsuSession, None)
    def __init__(self, initDict):
        FnTranscodeExporter.TranscodeExporter.__init__(self, initDict)

        self.uploaded = False
        self.upload_started = False
        self.fullFilePath = ""
        self.fileDir = ""
        self.fullFileName = ""
        self.root = ""
        self.ext = ""
        self.upload_progress = 0.0
        self.upload_reply = None
        self.cancelled = False

        self.session = None
        events.registerInterest(events.EventType.kLoadedKitsuSession,
                                self.getSession)
        events.sendEvent(events.EventType.kRequestKitsuSession, None)
Ejemplo n.º 6
0
  def __init__(self):
    registerInterest("kShowContextMenu/kBin", self.binViewEventHandler)
    registerInterest("kShowContextMenu/kSpreadsheet", self.eventHandler)
    registerInterest("kShowContextMenu/kTimeline", self.eventHandler)
    self._tagReportMenu = QMenu('CSV Tag Report')
    self.exportAllReportAction = createMenuAction("Export All", self.writeCSVReportForAllShotsInActiveSequence)
    self.exportTaggedReportAction = createMenuAction("Export All Tagged", self.writeCSVReportForTaggedShotsInActiveSequence)
    self.exportSelectedReportAction = createMenuAction("Export Selection", self.writeCSVReportForShotSelection)
    self.exportSelectedTaggedReportAction = createMenuAction("Export Selection Tagged", self.writeCSVReportForTaggedSelection)

    # By default, the Reporter will exclude the Nuke Tags (e.g. "Nuke Project File") added on export for instance.
    # To include these False, set includeNukeTags to True
    self.includeNukeTags = False   

    # Insert the actions to the Export CSV menu
    self._tagReportMenu.addAction(self.exportAllReportAction)
    self._tagReportMenu.addAction(self.exportTaggedReportAction)
    self._tagReportMenu.addAction(self.exportSelectedReportAction)
    self._tagReportMenu.addAction(self.exportSelectedTaggedReportAction)
    def __init__(self):
        registerInterest("kShowContextMenu/kBin", self.binViewEventHandler)
        registerInterest("kShowContextMenu/kSpreadsheet", self.eventHandler)
        registerInterest("kShowContextMenu/kTimeline", self.eventHandler)
        self._tagReportMenu = QMenu('CSV Tag Report')
        self.exportAllReportAction = createMenuAction(
            "Export All", self.writeCSVReportForAllShotsInActiveSequence)
        self.exportTaggedReportAction = createMenuAction(
            "Export All Tagged",
            self.writeCSVReportForTaggedShotsInActiveSequence)
        self.exportSelectedReportAction = createMenuAction(
            "Export Selection", self.writeCSVReportForShotSelection)
        self.exportSelectedTaggedReportAction = createMenuAction(
            "Export Selection Tagged", self.writeCSVReportForTaggedSelection)

        # By default, the Reporter will exclude the Nuke Tags (e.g. "Nuke Project File") added on export for instance.
        # To include these False, set includeNukeTags to True
        self.includeNukeTags = False

        # Insert the actions to the Export CSV menu
        self._tagReportMenu.addAction(self.exportAllReportAction)
        self._tagReportMenu.addAction(self.exportTaggedReportAction)
        self._tagReportMenu.addAction(self.exportSelectedReportAction)
        self._tagReportMenu.addAction(self.exportSelectedTaggedReportAction)
Ejemplo n.º 8
0
if nuke.env["studio"] and nuke.env.get("gui"):
    hieroKitsuSession = check_user_role()

    def requestKitsuSession(event):
        global hieroKitsuSession
        events.sendEvent(events.EventType.kLoadedKitsuSession,
                         None,
                         session=hieroKitsuSession)

    def loginKitsuSession(event):
        global hieroKitsuSession
        hieroKitsuSession = check_user_role()
        events.sendEvent(events.EventType.kLoadedKitsuSession,
                         None,
                         session=hieroKitsuSession)

    def logoutKitsuSession(event):
        global hieroKitsuSession
        hieroKitsuSession.logout()

    events.registerEventType("kRequestKitsuSession")
    events.registerEventType("kLoadedKitsuSession")
    events.registerEventType("kLoginKitsu")
    events.registerEventType("kLogoutKitsu")

    events.registerInterest(events.EventType.kRequestKitsuSession,
                            requestKitsuSession)
    events.registerInterest(events.EventType.kLoginKitsu, loginKitsuSession)
    events.registerInterest(events.EventType.kLogoutKitsu, logoutKitsuSession)
Ejemplo n.º 9
0
 def __init__(self):
     #     hiero.core.events.registerInterest("kShowContextMenu/kSpreadsheet", self.eventHandler)
     registerInterest("kShowContextMenu/kSpreadsheet", self.eventHandler)
     self._exportAllSpreadsheetToCSV = self.createMenuAction(
         "Spreadsheet To CSV", self.exportCSV)
     self._exportCSVMenu = QMenu('Export...')