mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Merge remote-tracking branch 'origin/feature/nuke-slate-prerender' into master-testing-local
This commit is contained in:
commit
102a4832ef
2 changed files with 4 additions and 13 deletions
|
|
@ -100,6 +100,7 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin):
|
|||
resolution_width = 1920
|
||||
resolution_height = 1080
|
||||
lut_path = None
|
||||
slate_frame = None
|
||||
subset = None
|
||||
if os.environ.get("PYPE_PUBLISH_PATHS"):
|
||||
paths = os.environ["PYPE_PUBLISH_PATHS"].split(os.pathsep)
|
||||
|
|
@ -156,6 +157,7 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin):
|
|||
lut_path = instance.get("lutPath", None)
|
||||
baked_mov_path = instance.get("bakeRenderPath")
|
||||
subset = instance.get("subset")
|
||||
slate_frame = instance.get("slateFrame")
|
||||
|
||||
else:
|
||||
# Search in directory
|
||||
|
|
@ -280,7 +282,8 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin):
|
|||
"source": data.get("source", ""),
|
||||
"pixelAspect": pixel_aspect,
|
||||
"resolutionWidth": resolution_width,
|
||||
"resolutionHeight": resolution_height
|
||||
"resolutionHeight": resolution_height,
|
||||
"slateFrame": slate_frame
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ class ExtractSlateFrame(pype.api.Extractor):
|
|||
# create write node
|
||||
write_node = nuke.createNode("Write")
|
||||
file = fhead + "slate.png"
|
||||
name = "slate"
|
||||
path = os.path.join(staging_dir, file).replace("\\", "/")
|
||||
instance.data["slateFrame"] = path
|
||||
write_node["file"].setValue(path)
|
||||
|
|
@ -91,17 +90,6 @@ class ExtractSlateFrame(pype.api.Extractor):
|
|||
write_node.setInput(0, previous_node)
|
||||
temporary_nodes.append(write_node)
|
||||
|
||||
repre = {
|
||||
'name': name,
|
||||
'ext': "png",
|
||||
'files': file,
|
||||
"stagingDir": staging_dir,
|
||||
"frameStart": first_frame,
|
||||
"frameEnd": last_frame,
|
||||
"anatomy_template": "render"
|
||||
}
|
||||
instance.data["representations"].append(repre)
|
||||
|
||||
# Render frames
|
||||
nuke.execute(write_node.name(), int(first_frame), int(last_frame))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue