Say I want to render every other frame in the first minute and only every third frame in the second etc?
Edit: I need the output to be one video. Best way for me would be to generate an array of frame numbers and use only them in the rendered video.
Say I want to render every other frame in the first minute and only every third frame in the second etc?
Edit: I need the output to be one video. Best way for me would be to generate an array of frame numbers and use only them in the rendered video.
I think it should work like this
import bpy
#configure the startframe, endframe and the step size
render_list = [
#startframe, stopframe, step
[0, 50, 1] # Frame 0 to 50 with stepsize 1
[50, 100, 2] # Frame 50 to 100 with stepsize 2
]
for config in render_list:
bpy.context.scene.frame_start = config[0]
bpy.context.scene.frame_end = config[1]
bpy.context.scene.frame_step = config[2]
bpy.ops.render.render(animation = True) #execute animation with current settings
frame_stop property so the code should be equal for both versions @miceterminator
– brockmann
Jun 18 '19 at 08:38