KirilStrezikozin / BakeMaster-Blender-Addon

Welcome to BakeMaster, a powerful and feature-packed baking solution created for Blender - an open-source 3D Computer graphics software.
Other
34 stars 6 forks source link

FEAT: `$materialname` keyword for batch name #86

Closed KirilStrezikozin closed 5 months ago

KirilStrezikozin commented 5 months ago

This feature request is:

Is your feature request related to a problem? Please describe. _mikefr wrote on Discord:

Can we have an option to use "materialname" wildcard in output settings?

Describe the solution you'd like to be implemented Add $materialname keyword for the bake_batchname property that will output the first material name in the object's materials.

Additional context BakeMaster bakes from all materials that object has, and there is no way to bake from specific one. So this makes $materialname mostly useful for baking objects with one material or when the first material name in the batch name is desired.

KirilStrezikozin commented 5 months ago

Refactored batch name preview calls a bit to always pass bm_obj and ctnr. Results in less loops inside batch name preview.