From dbc92922b5436e1a21653cfad45081a916dc78c5 Mon Sep 17 00:00:00 2001 From: ChristopheSeux Date: Wed, 1 May 2024 22:13:38 +0200 Subject: [PATCH] attr set for single file --- sequencer_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sequencer_utils.py b/sequencer_utils.py index ae44863..5cbd720 100644 --- a/sequencer_utils.py +++ b/sequencer_utils.py @@ -299,9 +299,10 @@ def render_scene(output, attributes=None): (scn.render, "filepath", output), ] - print(f'Render Strip to {scn.render.filepath}') Path(output).parent.mkdir(exist_ok=True, parents=True) - bpy.ops.render.opengl(animation=True, sequencer=True) + with attr_set(attributes): + print(f'Render Strip to {scn.render.filepath}') + bpy.ops.render.opengl(animation=True, sequencer=True) def render_strip(strip, output, attributes=None): output = os.path.abspath(bpy.path.abspath(str(output)))