Automatically renders your collections one by one, in proper side views.
Back up your file before running this scripts: it applies all the transformation of your objects. This is due to the use of bound box in determining camera position. Theoretically you can undo right after, but since your operation will involve changing the scripts (editing the collection names), sometimes the undo history will be messed up. So backup is still recommended.
-
Go to your blender file, move objects into collections. Say you want to render objects in "collection1" and "collection2" separately, then move anything else to some other collection.
-
Modify the "main function" of the auto_renderer_II.py file:
a) update the collections:
collections = ["collection1", "collection2"]
b) other changes: output paths and names etc. It outputs to the blender file's directory by default. (Only PNG format is tested, other formats should work also if supported by blender)
- Go to Blender, open the Scripting tab, open the script, run it (hotkey by default should be Alt + P).
You now have one or multiple side views of your collections in intended directory:
You can put intended lights into the same collection to render, it skips any object with "Light" in their name (I know there are better ways -> PR plz) since one cannot apply transformation to lights and thus they mess up the bbox center calculation. Note that if you don't put lights into the same collection, they might be ignored so you'll have no extra lighting.