Skip to content

Commit

Permalink
Merge pull request #6239 from ynput/bugfix/AY-1433_Nuke-Render-Use-ex…
Browse files Browse the repository at this point in the history
…isting-frames-with-slate-offsets-the-published-render

Nuke: render use existing frames with slate offsets the published render - AY-1433
  • Loading branch information
jakubjezek001 committed Mar 8, 2024
2 parents 4e044ea + d99ad33 commit 9a4312f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion openpype/hosts/nuke/plugins/publish/collect_slate_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def process(self, instance):
(
n_ for n_ in nuke.allNodes()
if "slate" in n_.name().lower()
if not n_["disable"].getValue()
if not n_["disable"].getValue() and
"publish_instance" not in n_.knobs() # Exclude instance nodes.
),
None
)
Expand Down
5 changes: 0 additions & 5 deletions openpype/hosts/nuke/plugins/publish/collect_writes.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def _set_additional_instance_data(
"frameEndHandle": last_frame,
})


# TODO temporarily set stagingDir as persistent for backward
# compatibility. This is mainly focused on `renders`folders which
# were previously not cleaned up (and could be used in read notes)
Expand Down Expand Up @@ -269,10 +268,6 @@ def _get_existing_frames_representation(
"tags": []
}

frame_start_str = self._get_frame_start_str(first_frame, last_frame)

representation['frameStart'] = frame_start_str

# set slate frame
collected_frames = self._add_slate_frame_to_collected_frames(
instance,
Expand Down

0 comments on commit 9a4312f

Please sign in to comment.