Bake Texture
bake_textureBakes mesh materials into a PNG using a UV map and Cycles CPU, restoring render settings and selection afterward. Use it for procedural materials and ambient occlusion.
Instructions
Bake a mesh's materials into a PNG through a UV map with Cycles (CPU), wired into them; render settings and selection are put back. Returns: path, size, seconds, image_driven channels. WHEN TO CALL: for procedural materials, AO.
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": "<object>",
"path": "<path>"
},
"name": "bake_texture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | *.png, only over a PNG | |
| size | No | Pixels a side (1024) | |
| type | No | Default diffuse; ao multiplies base colour | |
| object | Yes | Name | |
| uv_map | No | Default active | |
| samples | No | Default 32 | |
| timeout | No | Seconds (120) | |
| from_objects | No | High-poly sources | |
| use_in_material | No | Default true |