blender_bake_id_map
Generate a color ID map by assigning distinct flat colors to each material, object, or face set, enabling efficient texture painting and Substance Painter mask creation.
Instructions
Bake a color ID map where each material, object, or face set is assigned a distinct flat color. Temporarily overrides materials with emission shaders, bakes EMIT, then restores originals. Essential for texture painting workflows and Substance Painter masks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color_mode | No | How to assign ID colors: PER_MATERIAL (one color per material slot), PER_OBJECT (one color per joined sub-object), or PER_FACE_SET (one color per face set). Default PER_MATERIAL. | |
| resolution | No | Output texture resolution in pixels (default 2048) | |
| object_name | Yes | Name of the object to bake ID map for | |
| output_path | Yes | Full file path for the output ID map |