https://github.com/FrandSX/sxbatcher-blender
<aside> đź’ˇ NOTE: This page refers to an open source cross-platform asset management and multi-process exporter project on Github
</aside>
SX Batcher is a lightweight project to address two issues:
The above issues are approached with:
Other pipeline practices that are extremely beneficial:
Image 1: SX Batcher main view, where assets are selected from the catalogue for batch processing.
sudo apt install python3-tk
.sudo apt install idle3
.Exporting FBX files from the Blender GUI is a single-thread process. Significant performance gains are achieved when exporting large amounts of assets in parallel.
Requirements:
Launch SX Batcher by running sx_batcher_gui.py script. This is done on terminal/command prompt by typing:
python sx_batcher_gui.py
On Windows, you can right-click on the script file, and choose to open with Python. After this, double-clicking on the script file will run it automatically.
You should now see the screen similar to Image 1, but the catalogue is empty.
Click on the Settings tab.
Multi-process exporting functions by spawning headless Blender instances, each passed a separate blend file to process, together with a python script sx_batch.py that contains the processing steps.
Image 2: The settings tab, make sure the necessary paths are properly set!
Image 3: SX Batcher utilizes all CPUs available on the system, as well as those made available over LAN.
Set up each remote node in local network similarly to single-system setup. The only differences are:
Therefore, in the Settings tab, both Catalogue Path and Export Path can be left blank on a remote node.
Finally, on Network tab, enable Share CPU Cores, and choose the number of cores to share.
The UI lists the logical cores instead of physical ones. Initial tests seemed to indicate best performance by utilizing all logical cores for headless processing. Optimizations by limiting batches to physical core counts etc. only reduced overall performance.
The remote node starts instantly broadcasting its availability for batch processing, and shows up on any system where Use Network Nodes is enabled. This should be done on the master node that sends asset batches to be processed.
<aside> đź’ˇ The Master Node does need to have all the assets and catalogue properly configured!
</aside>
Image 4: The node list dynamically updates when “Use Network Nodes” is enabled
SX Batcher is a Blender addon with two functions:
Add SX Batcher to Blender via the addon settings. Make sure the catalogue file location is selected correctly.
A new tab appears in the 3D View.
<aside> đź’ˇ NOTE: When adding tags, separate them using only space (no commas)
</aside>
<aside> đź’ˇ NOTE: If SX Tools addon is in use, SX Batcher is redundant! The same functionality is present in SX Tools
</aside>