Does anyone how to render VSE seperate and and 3D scene seperately in the background mode? is it even possible? In UI render bpy.ops.render renders whatever SpaceType was last active.

Is it the same bpy.ops.render operator with using an active SpaceType?

I tried bpy.ops.render.opengl aswel because thats python tool tip for VSE render image menu item, but it's write_still=True doesn't seem to work.

I want to:

render frames on the 3Dscene

  1. Render frames on the 3Dscene.
  2. Push them to different Channel Strips in VSE.
  3. Export the VSE preview/output at a certain frame to disk or a texture

And I want to do this recursively, dynamically via script in background mode.

Help is much appreciated.

  • $\begingroup$ It is possible if you run script to change settings inside Blender scene stackoverflow.com/questions/10667314/… $\endgroup$
    – Crantisz
    Jul 26, 2022 at 12:04
  • $\begingroup$ yh. I understand the render code. but which setting seperates the VSE from 3DScene? $\endgroup$ Jul 26, 2022 at 12:55
  • 1
    $\begingroup$ scene.render.use_sequencer $\endgroup$
    – Crantisz
    Jul 26, 2022 at 13:02
  • $\begingroup$ Noice!!! Thank you vm!! $\endgroup$ Jul 26, 2022 at 13:10

1 Answer 1


It is not depending on active space. If scene.render.use_sequencer is true, Blender will render from sequencer (VSE) but only if it has image strips.

In UI you can find it here:

enter image description here


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .