From 559ca48e187d65178c215de64fbaef565704e1e5 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 13 Jan 2020 02:28:31 +0100 Subject: [PATCH] feat(nuke): reworking slate process --- pype/plugins/nuke/publish/collect_writes.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pype/plugins/nuke/publish/collect_writes.py b/pype/plugins/nuke/publish/collect_writes.py index 67b6e2e189..ff315a12ea 100644 --- a/pype/plugins/nuke/publish/collect_writes.py +++ b/pype/plugins/nuke/publish/collect_writes.py @@ -25,9 +25,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin): self.log.debug("checking instance: {}".format(instance)) - # check if slate node available - slate_node = instance.data.get("slateNodeName") - # Determine defined file type ext = node["file_type"].value() @@ -43,10 +40,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin): first_frame = int(nuke.root()["first_frame"].getValue()) last_frame = int(nuke.root()["last_frame"].getValue()) - # remove one frame at beggining if slate - if slate_node: - first_frame -= 1 - if node["use_limit"].getValue(): handles = 0 first_frame = int(node["first"].getValue()) @@ -108,12 +101,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin): "fps": instance.context.data["fps"] } - # if slate node then remove one frame from version data - if slate_node: - version_data.update({ - "frameStart": (first_frame + 1) + handle_start, - }) - instance.data["family"] = "write" group_node = [x for x in instance if x.Class() == "Group"][0] deadlineChunkSize = 1 @@ -143,5 +130,4 @@ class CollectNukeWrites(pyblish.api.InstancePlugin): "subsetGroup": "renders" }) - self.log.debug("instance.data: {}".format(instance.data))