diff --git a/pype/plugins/global/publish/collect_filesequences.py b/pype/plugins/global/publish/collect_filesequences.py index 13a593dbac..3840105fe5 100644 --- a/pype/plugins/global/publish/collect_filesequences.py +++ b/pype/plugins/global/publish/collect_filesequences.py @@ -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 } ) diff --git a/pype/plugins/nuke/publish/extract_slate_frame.py b/pype/plugins/nuke/publish/extract_slate_frame.py index 6ad6451176..be2dbdaf04 100644 --- a/pype/plugins/nuke/publish/extract_slate_frame.py +++ b/pype/plugins/nuke/publish/extract_slate_frame.py @@ -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))