blender_bake_pbr_batch
Bake all PBR texture channels in a single call and save each map to disk. Configures Cycles bake settings for diffuse, roughness, metallic, normal, AO, emission, displacement, and combined maps.
Instructions
Bake ALL PBR texture channels in one call. Switches to Cycles, iterates over requested channels (DIFFUSE, ROUGHNESS, METALLIC, NORMAL, AO, EMISSION, DISPLACEMENT, COMBINED), creates temp images, configures bake settings, and saves each map to disk. Returns a dict mapping channel name to output file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin | No | Bake margin in pixels (default 16) | |
| samples | No | Cycles render samples for baking (default 128) | |
| channels | No | Which PBR channels to bake. Default: all channels. Each channel produces a separate texture file. | |
| use_cage | No | Use cage for ray casting (default false) | |
| output_dir | Yes | Directory to save baked textures | |
| resolution | No | Texture resolution in pixels (default 2048) | |
| object_name | Yes | Name of the object to bake from | |
| normal_space | No | Normal map space (default TANGENT) | |
| output_format | No | Image output format (default PNG) | |
| output_prefix | No | Filename prefix (defaults to object name) | |
| cage_extrusion | No | Cage extrusion distance (default 0.1) |