mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Deadline: adding condition for review instance data key
to be able to pass review to metadata json from nuke
This commit is contained in:
parent
bcc1512773
commit
248e38b52d
1 changed files with 8 additions and 0 deletions
|
|
@ -640,6 +640,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
|
||||
def _solve_families(self, instance, preview=False):
|
||||
families = instance.get("families")
|
||||
|
||||
# test also instance data review attribute
|
||||
preview = preview or instance.get("review")
|
||||
|
||||
# if we have one representation with preview tag
|
||||
# flag whole instance for review and for ftrack
|
||||
if preview:
|
||||
|
|
@ -749,6 +753,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
"family": "prerender",
|
||||
"families": []})
|
||||
|
||||
# also include review attribute if available
|
||||
if "review" in data:
|
||||
instance_skeleton_data["review"] = data["review"]
|
||||
|
||||
# skip locking version if we are creating v01
|
||||
instance_version = instance.data.get("version") # take this if exists
|
||||
if instance_version != 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue