mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
feat(nuke): reworking slate process
This commit is contained in:
parent
09a38234e8
commit
559ca48e18
1 changed files with 0 additions and 14 deletions
|
|
@ -25,9 +25,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
self.log.debug("checking instance: {}".format(instance))
|
self.log.debug("checking instance: {}".format(instance))
|
||||||
|
|
||||||
# check if slate node available
|
|
||||||
slate_node = instance.data.get("slateNodeName")
|
|
||||||
|
|
||||||
# Determine defined file type
|
# Determine defined file type
|
||||||
ext = node["file_type"].value()
|
ext = node["file_type"].value()
|
||||||
|
|
||||||
|
|
@ -43,10 +40,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin):
|
||||||
first_frame = int(nuke.root()["first_frame"].getValue())
|
first_frame = int(nuke.root()["first_frame"].getValue())
|
||||||
last_frame = int(nuke.root()["last_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():
|
if node["use_limit"].getValue():
|
||||||
handles = 0
|
handles = 0
|
||||||
first_frame = int(node["first"].getValue())
|
first_frame = int(node["first"].getValue())
|
||||||
|
|
@ -108,12 +101,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin):
|
||||||
"fps": instance.context.data["fps"]
|
"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"
|
instance.data["family"] = "write"
|
||||||
group_node = [x for x in instance if x.Class() == "Group"][0]
|
group_node = [x for x in instance if x.Class() == "Group"][0]
|
||||||
deadlineChunkSize = 1
|
deadlineChunkSize = 1
|
||||||
|
|
@ -143,5 +130,4 @@ class CollectNukeWrites(pyblish.api.InstancePlugin):
|
||||||
"subsetGroup": "renders"
|
"subsetGroup": "renders"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
self.log.debug("instance.data: {}".format(instance.data))
|
self.log.debug("instance.data: {}".format(instance.data))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue