global | nuke: generalizing attribute detection

This commit is contained in:
Jakub Jezek 2022-04-04 11:56:42 +02:00
parent 23b31bb23b
commit 97dca92bbe
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 3 additions and 5 deletions

View file

@ -123,6 +123,7 @@ class ExtractReviewDataMov(openpype.api.Extractor):
if generated_repres:
# assign to representations
instance.data["representations"] += generated_repres
instance.data["hasReviewableRepresentations"] = True
else:
instance.data["families"].remove("review")
self.log.info((

View file

@ -528,11 +528,8 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
# preview video rendering
for app in self.aov_filter.keys():
if os.environ.get("AVALON_APP", "") == app:
# no need to add review if baking in nuke present
if (
app == "nuke"
and instance.get("bakingNukeScripts")
):
# no need to add review if `hasReviewableRepresentations`
if instance.get("hasReviewableRepresentations"):
break
# iteratre all aov filters