fix render single file

This commit is contained in:
ChristopheSeux
2023-10-09 18:30:06 +02:00
parent f57c4f8133
commit a449f146f1
3 changed files with 20 additions and 5 deletions
+14 -2
View File
@@ -255,6 +255,20 @@ def render_sound(strip, output):
scn.frame_end = scene_end
scn.frame_current = scene_current
def render_scene(output):
output = os.path.abspath(bpy.path.abspath(output))
scn = bpy.context.scene
render_path = scn.render.filepath
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)
scn.render.filepath = render_path
def render_strip(strip, output):
output = os.path.abspath(bpy.path.abspath(output))
@@ -475,8 +489,6 @@ def update_text_strips(scene):
shot_strip = get_strip_at('Shots', frame=scene.frame_current)
if shot_strip:
format_data.update({
'project_name': project.name,
'episode_name': episode.name if episode else '',