Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Nuke: fixing farm publishing if review is disabled #3306

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class NukeRenderLocal(openpype.api.Extractor):
# TODO: rewrite docstring to nuke
"""Render the current Fusion composition locally.
"""Render the current Nuke composition locally.

Extract the result of savers by starting a comp render
This will run the local render of Fusion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@ def _get_representations(self, instance, exp_files):

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:
Expand Down Expand Up @@ -749,6 +753,10 @@ def process(self, instance):
"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:
Expand Down
3 changes: 0 additions & 3 deletions openpype/settings/defaults/project_settings/deadline.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@
"maya": [
".*([Bb]eauty).*"
],
"nuke": [
".*"
],
"aftereffects": [
".*"
],
Expand Down