Skip to content

Commit

Permalink
custom placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
p2or authored Feb 15, 2023
1 parent 89e050c commit c6ceddc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions loom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c6ceddc

Please sign in to comment.