johnnygizmo / asset_snapshot

A Blender python script for getting asset browser custom preview images for objects and collections.
GNU General Public License v3.0
66 stars 8 forks source link

Added features for easy automatic rendering #13

Closed Daniel-Ayala closed 9 months ago

Daniel-Ayala commented 9 months ago

I recently purchased some asset packs. Every pack contains ~400 assets which greatly benefit from some beautiful thumbnails. Taking good ones required me to correctly set up an orthographic view, hiding the background, isolating each object etc.

I have made modifications to make it very easy to render a batch of thumbnails. Included features:

  1. Added option for rendering thumbnails of every selected object.
  2. Added option to make background transparent while rendering.
  3. Added option to isolate the object/collection while rendering.
  4. Added option to use a newly created camera (which is deleted at the end) while rendering.
  5. Added option to automatically position the camera to cover the object/collection.
  6. Added option to automatically focus on the object being rendered. Useful if dof is desired.
  7. Added option to automatically set the camera type to orthogonal. Including also options to determine the rotation (by default, perfectly isometrical perspective) and the scale multiplier (useful to fit objects or add more margin to the automatic position).

Used together, these options allow for the creation of perfect thumbnails for huge packs. For example:

Setup and options configuration:

image

Results after a single click, only taking care of configuring a nice HDR for lightning:

image