# Render the scenes and create the final movie.
# The scene are ordered: the final one is to compose the final output.

for scene in bpy.data.scenes:
    print("RENDERING SCENE: %s" % scene.name)
    bpy.ops.render.render(animation=True, scene=scene.name)

@@ -43,111 +43,758 @@
 ovie
-.%0A# The scene are ordered: the final one is to compose the final output.%0A%0Afor scene in bpy.data.scenes:
+, using a frame sequence approach.%0A#%0A# blender -b ap.blend -P scripts/renderScenes.py%0A#%0A# The name of the scene should contain, as first char, a number.%0A# For instance, %221 - First scene%22.%0A#%0A# The scene, used for creating the final output, should not follow that rule.%0A#%0A# This is script is useful when the scenes share the same render settings, for%0A# instance, when the scenes are not full copy.%0A%0Aimport bpy%0A%0Afor scene in bpy.data.scenes:%0A    sceneNumber = scene.name%5B0%5D%0A%0A    if (sceneNumber.isdigit()):%0A        scene.render.filepath = %22//outputs/scene%22 + sceneNumber + %22/%22%0A        scene.render.image_settings.file_format = %22PNG%22%0A    else:%0A        scene.render.filepath = %22//outputs/ap.mpg%22%0A        scene.render.image_settings.file_format = %22FFMPEG%22%0A
 %0A   
@@ -830,20 +830,31 @@
 %25 scene.
-name
+render.filepath
 )%0A    bp

Improve rendering script.