attr set for single file

pull/6/head
ChristopheSeux 2024-05-01 22:13:38 +02:00
parent 83268e9ec7
commit dbc92922b5
1 changed files with 3 additions and 2 deletions

View File

@ -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)))