Batch Render Collection

by Vladimir Spivak in Addons


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 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 "Blend 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



v. 1.0.4 (30-05-2020)

Render collections without interfering with the compositing.


v. 1.0.5 (31-05-2020)

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.


v. 1.0.9 (31-12-2020)

Added rendering of nested collections. The depth of the processed nesting can be set in the panel.


v. 1.1.2 (31-10-2021)

Added mix (combination, blend) collections or objects.


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.


v. 1.1.6 (06-01-2022)

Version 1.1.6 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



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).



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)


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

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


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

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

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


v. 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.


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).



v 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.



v 1.2.5  (22-01-2023)

Added batch OpenGL render (render viewport: wireframe, solid, material preview).

Added different types for naming output files:

  • [Scene] - name active scene
  • [ViewLayer] - name active viewlayer
  • [BaseCollection] - name base collection
  • [name] - name rendered collection or object
  • [frame] - number rendered frame

Fixed some bugs.

Added auto save file before render.



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

https://blenderartists.org/t/batch-render-collection


or Telegram:

https://t.me/cwolf3d


or Discord:

https://discord.com/channels/964416913977532416/964837448720990248


$15

Have questions before purchasing?
Login to message

Details
Sales 100+
Rating
9 ratings
Published over 4 years ago
Software Version 4.1, 4.0, 3.6, 3.5, 3.4, 3.3, 3.2, 3.1, 3.0, 2.93, 2.92, 2.91, 2.9, 2.83, 2.82, 2.81, 2.8
License GPL