mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
Import Reference during Publish
This commit is contained in:
parent
b82c3ac7f9
commit
ab93c766ea
1 changed files with 5 additions and 12 deletions
|
|
@ -7,20 +7,10 @@ import pyblish.api
|
|||
import tempfile
|
||||
|
||||
from openpype.lib import run_subprocess
|
||||
from openpype.pipeline import publish, legacy_io
|
||||
from openpype.settings import get_project_settings
|
||||
from openpype.pipeline import publish
|
||||
from openpype.hosts.maya.api import lib
|
||||
|
||||
|
||||
def _import_reference():
|
||||
project_name = legacy_io.active_project()
|
||||
project_setting = get_project_settings(project_name)
|
||||
import_reference = (
|
||||
project_setting["deadline"]["publish"]["MayaSubmitDeadline"]["import_reference"] # noqa
|
||||
)
|
||||
return import_reference
|
||||
|
||||
|
||||
class ExtractImportReference(publish.Extractor):
|
||||
"""
|
||||
|
||||
|
|
@ -34,10 +24,13 @@ class ExtractImportReference(publish.Extractor):
|
|||
order = pyblish.api.ExtractorOrder - 0.48
|
||||
hosts = ["maya"]
|
||||
families = ["renderlayer", "workfile"]
|
||||
active = _import_reference()
|
||||
optional = True
|
||||
tmp_format = "_tmp"
|
||||
|
||||
@classmethod
|
||||
def apply_settings(cls, project_setting, system_settings): #noqa
|
||||
cls.active = project_setting["deadline"]["publish"]["MayaSubmitDeadline"]["import_reference"] # noqa
|
||||
|
||||
def process(self, instance):
|
||||
ext_mapping = (
|
||||
instance.context.data["project_settings"]["maya"]["ext_mapping"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue