mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix default dict and load of settings
This commit is contained in:
parent
41d4358500
commit
e6c3e4e4a0
2 changed files with 12 additions and 1 deletions
|
|
@ -80,6 +80,16 @@ class CollectSequencesFromJob(pyblish.api.ContextPlugin):
|
|||
review = True
|
||||
|
||||
def process(self, context):
|
||||
|
||||
self.review = (
|
||||
context.data
|
||||
["project_settings"]
|
||||
["royalrender"]
|
||||
["publish"]
|
||||
["CollectSequencesFromJob"]
|
||||
["review"]
|
||||
)
|
||||
|
||||
if os.environ.get("OPENPYPE_PUBLISH_DATA"):
|
||||
self.log.debug(os.environ.get("OPENPYPE_PUBLISH_DATA"))
|
||||
paths = os.environ["OPENPYPE_PUBLISH_DATA"].split(os.pathsep)
|
||||
|
|
@ -152,6 +162,7 @@ class CollectSequencesFromJob(pyblish.api.ContextPlugin):
|
|||
if "ftrack" not in families:
|
||||
families.append("ftrack")
|
||||
if "review" not in families and self.review:
|
||||
self.log.info("attaching review")
|
||||
families.append("review")
|
||||
|
||||
for collection in collections:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class OpenPypeContextSelector:
|
|||
|
||||
def __init__(self):
|
||||
self.job = rr.getJob()
|
||||
self.context = None
|
||||
self.context = {}
|
||||
|
||||
self.openpype_executable = "openpype_gui"
|
||||
if platform.system().lower() == "windows":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue