예제 #1
0
    def _register_exporter(self):
        """
        Set up this app with the hiero exporter frameworks
        """
        # register our app with the base class that all custom hiero objects derive from.
        ShotgunHieroObjectBase.setApp(self)

        hiero.core.taskRegistry.registerTask(ShotgunShotUpdaterPreset,
                                             ShotgunShotUpdater)
        hiero.core.taskRegistry.registerTask(ShotgunTranscodePreset,
                                             ShotgunTranscodeExporter)
        hiero.core.taskRegistry.registerTask(ShotgunNukeShotPreset,
                                             ShotgunNukeShotExporter)
        hiero.core.taskRegistry.registerTask(ShotgunAudioPreset,
                                             ShotgunAudioExporter)
        hiero.core.taskRegistry.registerProcessor(ShotgunShotProcessorPreset,
                                                  ShotgunShotProcessor)

        hiero.ui.taskUIRegistry.registerTaskUI(ShotgunTranscodePreset,
                                               ShotgunTranscodeExporterUI)
        hiero.ui.taskUIRegistry.registerTaskUI(ShotgunNukeShotPreset,
                                               ShotgunNukeShotExporterUI)
        hiero.ui.taskUIRegistry.registerTaskUI(ShotgunAudioPreset,
                                               ShotgunAudioExporterUI)
        hiero.ui.taskUIRegistry.registerProcessorUI(ShotgunShotProcessorPreset,
                                                    ShotgunShotProcessorUI)

        # Add our default preset
        self._old_AddDefaultPresets_fn = hiero.core.taskRegistry._defaultPresets
        hiero.core.taskRegistry.setDefaultPresets(self._add_default_presets)
예제 #2
0
    def _register_exporter(self):
        """
        Set up this app with the hiero exporter frameworks
        """
        # register our app with the base class that all custom hiero objects derive from.
        ShotgunHieroObjectBase.setApp(self)

        hiero.core.taskRegistry.registerTask(ShotgunShotUpdaterPreset, ShotgunShotUpdater)
        hiero.core.taskRegistry.registerTask(ShotgunTranscodePreset, ShotgunTranscodeExporter)
        hiero.core.taskRegistry.registerTask(ShotgunNukeShotPreset, ShotgunNukeShotExporter)
        hiero.core.taskRegistry.registerProcessor(ShotgunShotProcessorPreset, ShotgunShotProcessor)

        hiero.ui.taskUIRegistry.registerTaskUI(ShotgunTranscodePreset, ShotgunTranscodeExporterUI)
        hiero.ui.taskUIRegistry.registerTaskUI(ShotgunNukeShotPreset, ShotgunNukeShotExporterUI)
        hiero.ui.taskUIRegistry.registerProcessorUI(ShotgunShotProcessorPreset, ShotgunShotProcessor)

        # Add our default preset
        self._old_AddDefaultPresets_fn = hiero.core.taskRegistry._defaultPresets
        hiero.core.taskRegistry.setDefaultPresets(self._add_default_presets)