bake_textures
Bake texture maps from a mesh or from high-poly to low-poly with support for normal, AO, diffuse, roughness, emit, combined, and shadow maps.
Instructions
Bake texture maps from a mesh (or high-poly to low-poly).
Args: mesh_name: Target mesh (low-poly for high→low bake, or single mesh). bake_types: JSON array of bake types — "NORMAL", "AO", "DIFFUSE", "ROUGHNESS", "EMIT", "COMBINED", "SHADOW". resolution: Texture resolution (512, 1024, 2048, 4096). output_dir: Output directory for baked textures (Blender path format). samples: Render samples for baking. margin: Pixel margin around UV islands. high_poly: Optional high-poly mesh name for high→low baking.
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": {
"mesh_name": "<mesh_name>"
},
"name": "bake_textures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin | No | ||
| samples | No | ||
| high_poly | No | ||
| mesh_name | Yes | ||
| bake_types | No | ["DIFFUSE"] | |
| output_dir | No | //textures | |
| resolution | No |