feat(nuke): reworking slate process

This commit is contained in:
Jakub Jezek 2020-01-13 02:28:31 +01:00
parent 09a38234e8
commit 559ca48e18

View file

@ -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))