I have the following code to render child collections within a collection:
sideplates = bpy.data.collections["RACK 1 - 1 RACK FRAME"].children
for s in sideplates:
s.hide_render=False
s.hide_viewport=False
n = s.name
# render 800 x 600
scene.render.resolution_x = render1xresolution
scene.render.resolution_y = render1yresolution
bpy.data.scenes["CONFIGURATOR 800 x 600"].render.filepath = '/BlenderPythonTest'
bpy.ops.render.render(write_still = 1)
s.hide_render=True
s.hide_viewport=True
The collection structure looks like this:
I have tried to untick the box, excluding the child collections from the parent collection. Running the script will still render the "Nuage" collection et al, when what I would like from the picture above is just to render "Sable", "Souquillou" and "Cab".
Is this possible and if so, how?