From 98873d4bb4845dd2eb251879871c37113666fbb0 Mon Sep 17 00:00:00 2001 From: p2or <512368+p2or@users.noreply.github.com> Date: Sun, 16 Jun 2024 15:41:18 +0200 Subject: [PATCH] Placeholders - Create folders if not present --- loom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loom.py b/loom.py index 9ff8aab..a502807 100644 --- a/loom.py +++ b/loom.py @@ -3888,13 +3888,13 @@ def start_render(self, scene, frame, silent=False): print("Skipped frame: {} (already exists)".format(frame)) else: if rndr.use_placeholder and not os.path.isfile(rndr.filepath): + os.makedirs(os.path.dirname(rndr.filepath), exist_ok=True) 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)