The Batch Render Cameras addon for Blender allows you to automate the rendering process of multiple cameras within your scene. It renders all visible cameras (those not hidden from rendering) and saves the images to a timestamped directory. This addon is especially useful for projects requiring multiple camera angles or perspectives to be rendered efficiently.
- Renders all visible cameras in the scene.
- Saves rendered images to a subdirectory named
cameras-<datetime>
for easy organization. - Accessible directly from Blender's Render menu.
Follow the steps below to install the Batch Render Cameras addon in Blender:
- Save
batch_render_cameras.py
on your machine.
- Open Blender.
- Go to
Edit
> Preferences. - Select the Add-ons tab on the left panel.
- Click on the Install... button located at the top of the window.
- Navigate to where you saved
batch_render_cameras.py
and select it. - Click Install Add-on.
- After installation, the addon should appear in the list with a checkbox next to it.
- Enable the addon by checking the box next to its name.
- Save Preferences (optional) to keep the addon enabled in future sessions.
- Open your Blender project that contains multiple cameras.
- Ensure that the cameras you want to render are not hidden from rendering (the camera icon in the Outliner is enabled).
- Go to the Render menu located at the top of the Blender interface.
- Select Batch Render Cameras... from the dropdown menu.
- A dialog box titled Batch Render Cameras will appear.
- Set the Base Output Directory:
- Click on the folder icon next to the input field.
- Navigate to the directory where you want the rendered images to be saved.
- Select the directory and click Accept.
- Confirm that the path is correct in the input field.
- Click OK to start the rendering process.
- The addon will:
- Create a subdirectory named
cameras-<datetime>
inside the base output directory. - Render each visible camera and save the images into the subdirectory.
- Create a subdirectory named
- Progress Bar:
- A progress bar will appear in Blender's status bar, indicating the rendering progress.
- Console Output:
- Detailed information about the rendering process will be printed in the system console.
- To view the console output:
- Windows:
- Go to
Window
> Toggle System Console.
- Go to
- macOS and Linux:
- Run Blender from the terminal to see the console output.
- Windows:
- After the rendering is complete, navigate to your specified output directory.
- Open the subdirectory named
cameras-<datetime>
, where<datetime>
corresponds to the date and time when the rendering was initiated. - View your rendered images, which are named after the cameras.
- Only cameras that are visible in the render (i.e., their camera icon in the Outliner is enabled) will be included.
- To exclude a camera from the batch render:
- Disable the camera's render visibility by clicking the camera icon next to it in the Outliner.
- Before running the addon, configure your render settings (resolution, samples, output format, etc.) in the Render Properties panel.
- The addon uses the current scene's render settings for all cameras.
- By default, images are saved as
.png
files. - To change the image format:
- Modify the addon code where the file extension is specified.
scene.render.filepath = os.path.join(output_dir, cam.name + '.png')
- Replace
'.png'
with your desired format (e.g.,'.jpg'
,'.exr'
).
- Modify the addon code where the file extension is specified.
- The subdirectory is named using the current date and time in the format
YYYYMMDD-HHMMSS
. - To customize the format:
- Modify the following line in the addon code:
current_datetime = datetime.now().strftime('%Y%m%d-%H%M%S')
- Refer to Python's
strftime
directives to adjust the format.
- Modify the following line in the addon code:
- The addon includes error handling to notify you of any issues during the rendering process.
- Error messages will appear in Blender's status bar and the system console.
If you wish to uninstall the addon:
- Go to
Edit
> Preferences > Add-ons. - Search for "Batch Render Cameras" in the search bar.
- Uncheck the box next to the addon name to disable it.
- Click the Remove button to uninstall the addon from Blender.
- Addon Not Appearing in Render Menu:
- Ensure that the addon is enabled in the Preferences.
- Restart Blender if necessary.
- Permission Issues:
- Make sure Blender has write permissions to the specified output directory.
- No Cameras Rendered:
- Verify that your cameras are not hidden from rendering.
- Check that there are cameras in your scene.
- Console Output Not Visible:
- On Windows, toggle the system console via
Window
> Toggle System Console. - On macOS and Linux, run Blender from the terminal to see console messages.
- On Windows, toggle the system console via
This addon is provided under the MIT License. You are free to use, modify, and distribute it as per the license terms.
- Blender Foundation: For creating and maintaining Blender.