Skip to content

Automatically renders your collections one by one, with proper side views.

License

Notifications You must be signed in to change notification settings

SanBingYouYong/Blender-Auto-Renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Blender-Auto-Renderer

Automatically renders your collections one by one, in proper side views.

Important:

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.

Getting Started:

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

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

  1. 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: auto_render_c1 auto_render_c2 auto_render_c3 auto_render_c4

Notes:

Lighting:

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.

About

Automatically renders your collections one by one, with proper side views.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages