Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setup multi scene rendering
# made in answer to
import bpy
master_render_scene_name = 'Multi_render'
base_path = '//renders/'
if master_render_scene_name not in
masterScene =[master_render_scene_name]
masterScene.use_nodes = True
masterNodeTree = masterScene.node_tree
for n in masterNodeTree.nodes:
fileNode ='CompositorNodeOutputFile')
fileNode.base_path = base_path
fileNode.format.file_format = 'PNG'
fileNode.format.color_mode = 'RGBA'
for s in fileNode.file_slots:
nspacing = 40
nx = (len(*nspacing)/2
for scn in
if == master_render_scene_name:
sp = scn.render.filepath.replace(base_path,'')
fs =
rl ='CompositorNodeRLayers')
rl.scene = scn
rl.hide = True
rl.location.x = -300
rl.location.y = nx
nx -= nspacing['Image'], fs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment