Merge pull request #158 from ynput/bugfix/AY-1433_Nuke-Render-Use-existing-frames-with-slate-offsets-the-published-render

Nuke: render use existing frames with slate offsets the published render - AY-1433
This commit is contained in:
Jakub Ježek 2024-03-11 14:43:03 +01:00 committed by GitHub
commit f6bfd72e79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -17,7 +17,8 @@ class CollectSlate(pyblish.api.InstancePlugin):
(
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
)

View file

@ -194,7 +194,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin,
"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)
@ -269,10 +268,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin,
"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,