Batch Render Collection

Addon for batch rendering of collections. And also for exporting objects and collections. And for creating variants of collections (mixing collections).
If you need to render a lot of objects of the same type (collections), then this addon is made specifically for this.

Rendering of both static images and animation is supported!

Create a collection such as Render.
Make links to the collections you want to render. Transfer them while holding down the Ctrl button to the created Render collection.
Indicate in the addon the Render collection containing other collections for rendering.
Specify the path for the finished image and click Render All.
Rendered images (video) will appear in the folder you specify.

Screenshot_21

Screenshot_2

Screenshot_3

Screenshot_15

Screenshot_12

Screenshot_20

Rendered images will appear in the folder you specify.

Note. Collections in the collection for rendering need to be dragged with Ctrl pressed - then links to them are created. Everything that is included outside the Render collection will be included on all renders.

If you need combination of different sets of objects, then this addon can do it.

For example, you have objects of one type “A”, “B”, “C” and another type “1”, “2”. Then the addon will be able to combine the variations A1, B1, C1, A2, B2, C2.

Addon does mix (combination, blend) collections or objects.

  1. Place objects in a collection according to one type.
  2. Combine these collections into one, for example, name “Mixing”.
  3. Select this collection in panel N in the ‘Mixing Objects from Collection’ field.
  4. In the “Collection of Output Results” field, enter the collection of results, for example, name “Output”:
  5. Click on the “MixingAll” button.
    The addon generates all combinations.
    Also in panel N you can see how many combinations are found, and you can assign the maximum number of combinations, or put 0 - is unlimited

The addon also supports a simple random selection of one collection or an object from the collection.

In addon added batch rendering from Excel file (* .xlsx). You can set variables in the cells of the Excel file and separately describe the logic of changing the scene for these variables in a separate script.
The addon scans each line of the Excel file, calls functions for each cell, and starts rendering.
Any Blender commands can be used in the script file.
A simple example script can be generated by an addon itself, then it will need to be modified.
For ease of use, there are many built-in functions.

Version 1.1.9 Added rendering in external console. Now you can start rendering and continue working in the blender or even close the blender, the result of the work can be viewed in the console.

Version 1.2.1 Added the ability to render individual frames and/or frame intervals in an animation. The list of frame numbers can be specified through a coma and/or a dash. For example: 1,3,5,8-12,25

When rendering a single frame, the frame number is added to the output file name.

Now when rendering in the external console, the GPU is also used according to the Blender settings.

Version 1.2.2 (10-09-2022)

Added a render from all the cameras in the collection.

Added a button to switch from collection selection mode to collection name writing mode. If you have render time problem switch to collection name writing mode.

Added functions on Panel and in Outliner (context menu):

Added exclusion and inclusion of all subcollections in collection.

Added exclude/include selected collections in Outliner.

Now, after rendering, the status of included and excluded collections is returned as it was before rendering.

Version 1.2.3 (04-11-2022)

Added batch export of collection and objects.

It is possible to choose the export format (obj, gltf, fbx and others, if you have enabled its format in the blender settings).

Screenshot_20

Version. 1.2.4 (11-12-2022)

When the script works with collections before rendering, the ability to include or disable or do nothing with the collection properties: exclude, hide_render, holdout, indirect_only has been added.

Added different types for naming output files.

Fixed not using GPU when rendering.
Screenshot_21

For all questions, suggestions and comments, you can contact me:

Telegram:

or Discord:

3 Likes

Addon updated.

v. 1.0.5 (31-05-2020)
Render collections without interfering with the compositing.
Correction of many errors. Direct work with collections.

v. 1.0.7 (17-08-2020)

Correction some errors. Added status display.

v. 1.0.8 (18-08-2020)

Added rendering of objects to the collection. In order, turns on the visibility of objects and renders them.

Screenshot_2

Addon updated.

v. 1.0.9 (31-12-2020)
Added rendering of nested collections. The depth of the processed nesting can be set in the panel.

Screenshot_3

Looks handy, its render collection instances ?

1 Like

Addon works with any type of collection (including instances)

Addon updated.

v. 1.1.2 (31-10-2021)

Added mix (combination, blend) collections or objects.

If you need combination of different sets of objects, then this addon can do it.
For example, you have objects of one type “A”, “B”, “C” and another type “1”, “2”. Then the addon will be able to combine the variations A1, B1, C1, A2, B2, C2.

Addon does mix (combination, blend) collections or objects.

  1. Place objects in a collection according to one type.

  2. Combine these collections into one, for example, name “Mixing”.

  3. Select this collection in panel N in the ‘Mixing Objects from Collection’ field.

  4. In the “Collection of Output Results” field, enter the collection of results, for example, name “Output”:

  5. Click on the “Mixing All” button.

The addon generates all combinations.

Also in panel N you can see how many combinations are found, and you can assign the maximum number of combinations, or put 0 - is unlimited

Screenshot_4

Addon updated.

v. 1.1.5 (13-12-2021)

Added generation of variants by choosing random collections or items from a collection.

Added animation support.

And added Blender 3.0+ support.

Addon updated.

v. 1.1.6 (06-01-2022)

Screenshot_10

Added batch rendering from Excel file (* .xlsx). You can set variables in the cells of the Excel file and separately describe the logic of changing the scene for these variables in a separate script.
The addon scans each line of the Excel file, calls functions for each cell, and starts rendering.
Any Blender commands can be used in the script file.
A simple example script can be generated by an addon itself, then it will need to be modified.
For ease of use, there are three built-in functions:
collection_exclude(collection_name: str, mode: bool) - view, hide collection
object_exclude(obj_name: str, mode: bool) - view, hide object
set_material(obj_name: str, mat_index: int, mat_name: str) - set material

Addon updated.

v. 1.1.7 (16-02-2022)

Adding batch render from xls file (Excel97-2003).

Added string as parameters to rendering from xlsx and xls file. Now you can set parameters as string.

Added setting for tab panel name (N panel) and debug mode (show all error).

Added the name of the collection of variation. Now, the name of the collection consists of the names of the variation (objects in the collection).

Addon updated.

v. 1.1.8 (23-02-2022)
Added some helper functions:

file_name(name: str) - set output render file name

set_material_on_objects(objs_name: array, mat_index: int, mat_name: str) - set material on many objects

set_node_parameters_on_objects(objs_name: array, mat_index: int, node_parameters: dict) - set parameters in node
example node_parameters : {“label”:“rgb”, “outputs”: 0, “value”: [0, 0, 1, 1]}

set_node_parameters(mat_name: array, node_parameters: dict) - set parameters in node
example node_parameters : {“label”:“rgb”, “outputs”: 0, “value”: [0, 0, 1, 1]}

hex_to_rgb(hex_value, alpha=1) convert color example 0xE7E7FF to r, g, b, a parameters
demo: “value”: hex_to_rgb(0xE7E7FF, 1)

Added demo files for easy test batch render from xlsx file

Hi cwolf3d. First of all thank you so much for that addon, it’s amazing!
Hope everything is going well for you, much love to Ukraine.

I was wondering if I could use the addon to save multiple render passes for every render instance.
Right now, when using the file output node, it does output the files but they get overwritten because the extra exported passes don’t follow the naming convention of the files created by the addon.

Let me know if you have any ideas!:slight_smile:

1 Like

Hi, bofu.
Thanks for your words!

I think everything can be done.
I need a minimal demo or video or a more detailed description.

Addon updated.

v. 1.1.9 (16-04-2022)

  1. Added rendering in external console. Now you can start rendering and continue working in the blender or even close the blender, the result of the work can be viewed in the console.

For convenience, you just need to click on the “Render in external console” button.

You can also start rendering from the console.

Command to start rendering:

blender file.blend -b --addons batch_render_collection --python-expr “import bpy; bpy.ops.render.console_batch_render()”

To view additional options:

blender.exe file.blend -b --addons batch_render_collection --python-expr “import bpy; bpy.ops.render.console_batch_render()” – --help

  1. Changed the naming of output files. Conforms to the File Output Node specification.

Addon updated.

v. 1.2.1 (21-06-2022)

  1. Added the ability to render individual frames and/or frame intervals in an animation. The list of frame numbers can be specified through a coma and/or a dash. For example: 1,3,5,8-12,25
    Screenshot_18

When rendering a single frame, the frame number is added to the output file name.

  1. Now when rendering in the external console, the GPU is also used according to the Blender settings.
1 Like

Hello,

I was wondering if you could give an example on how to use the set_materials_on_objects() function. I think my issue is with setting up a list/array to use with it.

Thanks!

1 Like

set_material_on_objects({“Cube”, “Torus”, “Cone”}, 0, “Material.001”)

1 Like

First of all thanks for such a powerful tool you created, it saves so much time! I had one question regarding the add on though. I have very many collections that I want to render. If I render only one collection separately in a new blend file, it starts rendering almost immediately. But when I have many collections to be rendered, it starts rendering only after a minute (so ~1 minute waiting time for each collection + rendering time) and if I turn on persistent data then some of the objects are rendered black. I am not sure if this is about your add on, but if so, can you give me any tips to decrease the loading time before the render starts with many collections?

1 Like

Addon updated.

v. 1.2.2 (10-09-2022)

  1. Added a render from all the cameras in the collection.

  2. Added new function in xlsx render: set_camera(camera_name: str) - set active camera

  3. Added a button to switch from collection selection mode to collection name writing mode. If you have render time problem switch to collection name writing mode.

  4. Added functions on Panel and in Outliner (context menu):
    Added exclusion and inclusion of all subcollections in collection.
    Added exclude/include selected collections in Outliner.

  5. Now, after rendering, the status of included and excluded collections is returned as it was before rendering.

Addon updated.

v. 1.2.3 (04-11-2022)

Added batch export of collection and objects.

It is possible to choose the export format (obj, gltf, fbx and others, if you have enabled its format in the blender settings).

Screenshot_20