I’m writing a batch rendering script for my own use. It’s based on particular structure of my blender file. I need to render dozens of scenes. In each scene, I need to render like 20 frames of continuous animation, and 2 other frames. The problem I’m having is that I have no way to tell blender which still frame to render.
The script is executed this way:
blender -b my.blend -P my.py
I’ve got:
for scene_name in bpy.data.scenes.keys():
s = bpy.data.scenes[scene_name]
s.frame_set(100)
s.frame_current = 100
bpy.ops.render.render(....)
for still frame render. The two calls won’t work. It always render the “current frame” as the saving state. I’m wondering what’s the proper way to change it?
@CoDEmanX, I needed the name of the scene for filename formatting. Actually some other processing is going on and not all scenes are needed. I’m not sure if this is related to my particular problem…
I discovered that this problem might be a bug. The still frame rendered might not be exactly the “current frame” when saved. It could be some other frame. And if I encounter this problem, I only have to open up blender, go to the scene, and drag the current frame to another one and save it. I guess this has something to do with frame rate remapping, which I’m not using.
I’ll try to create a minimal file to reproduce this issue and file a bug.