Run Blender as a background process to render ".blend" files in a directory via CLI
After being tasked with rendering a couple hundred Blender files; I wrote this Python script to loop through folders in a directory and render the .blend files via CLI. On average this saved 50% of render time compared to manually opening and rendering each file.
- Python
To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
- python
- blender
npm install npm@latest -g- Clone the repo
git clone https://github.com/NateSpring/Auto-Blender-Render.git- Install NPM packages
npm install- Change Directory Paths and Blender application path.
Use this project to loop through a directory and render all .blend files to your selected output directory. After cloning the repo, modify your input and output direcory paths, including the 'subprocess' location for your Blender installation. If a folder from the input directory already exists in the ouput directory, it will be skipped to avoid rendering twice.
Distributed under the MIT License. See LICENSE for more information.
Your Name - Nate Spring
Project Link: https://github.com/NateSpring/Auto-Blender-Render