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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_name": "<object_name>",
"output_path": "<output_path>"
},
"name": "blender_bake_id_map"
}
}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 |