Deadline: adding condition for review instance data key

to be able to pass review to metadata json from nuke
This commit is contained in:
Jakub Jezek 2022-06-08 17:22:30 +02:00
parent bcc1512773
commit 248e38b52d
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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: