From c6ceddc565544e7499898c19e0a79482c3d94834 Mon Sep 17 00:00:00 2001 From: p2or <512368+p2or@users.noreply.github.com> Date: Wed, 15 Feb 2023 20:40:02 +0100 Subject: [PATCH] custom placeholders --- loom.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loom.py b/loom.py index 97ddd80..82bf03e 100644 --- a/loom.py +++ b/loom.py @@ -3806,10 +3806,14 @@ def start_render(self, scene, frame, silent=False): else: print("Skipped frame: {} (already exists)".format(frame)) else: + if rndr.use_placeholder and not os.path.isfile(rndr.filepath): + open(rndr.filepath, 'a').close() + if silent: bpy.ops.render.render(write_still=True) else: bpy.ops.render.render("INVOKE_DEFAULT", write_still=True) + if frame not in self._rendered_frames: self._rendered_frames.append(frame)