fix render single file
This commit is contained in:
+14
-2
@@ -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 '',
|
||||
|
||||
Reference in New Issue
Block a user