Bake Mesh Maps in Substance Painter with AI Prompts

Updated 2026-11-27 · MCP Pro for Painter v1.2 · Tested with Substance 3D Painter 12.0.3 and 12.2.0

Baking mesh maps is the step every Painter project needs and nobody enjoys: the same dialog, the same settings, repeated for every texture set and every asset. With MCP Pro for Painter an AI agent can run the bake for you, choosing the maps, the resolution and the high-poly source, then confirm what was baked. This guide covers the baking tools, their real parameters, how to handle long bakes, and how to bring in maps baked elsewhere.

Why mesh maps matter for AI texturing

Smart materials, smart masks and generators such as Curvature read Painter's baked mesh maps to decide where edges, cavities and occluded areas are. A project with no bakes gives flat, uniform results no matter how good the prompt is. If an agent-built material looks wrong, the first thing to check is whether the maps exist:

For each texture set, list which mesh maps are baked and which are missing.

That calls list_baked_mesh_maps, which returns per-set baked_maps and unbaked_usages.

The baking tools

ToolWhat it bakesNotable parameters
bake_mesh_mapsSeveral maps in one pass, for one set or every settexture_set, high_poly_mesh, output_size, maps, timeout_seconds
bake_ambient_occlusionAmbient occlusionray_samples (256), distribution, attenuation, high_poly_mesh
bake_curvatureCurvaturesamples (9), mode: PerVertex or PerPixel
bake_thicknessThicknessray_samples (64), distribution, high_poly_mesh
bake_positionPositionmode: Normalized or Range
bake_world_space_normalWorld-space normaloutput_size
bake_idID mapsource: MeshID, VertexColor, PolygonGroup, MaterialColor or SubMesh; color_source
get_baking_statusReports which bakers are enabled for a set and the current curvature methodtexture_set

Every bake tool takes texture_set, which targets every set when omitted, and output_size, 1024 by default. output_size must be a power of two from 256 to 8192.

Mode note: the baking module is in the default and full modes, not in lite or minimal. list_baked_mesh_maps is part of introspection, which is also in default and full. Importing external maps needs full.

Baking everything with bake_mesh_maps

bake_mesh_maps is the tool you will use most. Its maps list accepts these names:

AmbientOcclusion  Curvature  Position  WorldSpaceNormal  Thickness  ID
Normal  Opacity  BentNormals  Height

When maps is omitted, it bakes the first six: AmbientOcclusion, Curvature, Position, WorldSpaceNormal, Thickness and ID. Add Normal explicitly when you bake from a high-poly mesh and want the tangent-space normal transferred.

When texture_set is omitted, every set in the project is baked one after another and the result reports texture_set: "<all>". The response lists each {texture_set, map, status}, plus elapsed_seconds.

Bake AmbientOcclusion, Curvature, Thickness and Normal for every texture set at 2048, using the high-poly mesh D:/Art/crate/crate_high.fbx. Use a 20 minute timeout. When it finishes, list the baked maps per set.

A request like that becomes one call:

bake_mesh_maps(
  high_poly_mesh="D:/Art/crate/crate_high.fbx",
  output_size=2048,
  maps=["AmbientOcclusion", "Curvature", "Thickness", "Normal"],
  timeout_seconds=1200
)

followed by list_baked_mesh_maps to confirm the result.

Tuning individual maps

Use the single-map tools when one map needs different settings from the rest, or to re-bake one map without redoing everything.

Ambient occlusion

bake_ambient_occlusion exposes ray_samples (default 256), distribution (spread in degrees, default 180.0) and attenuation (0 none, 1 smooth, 2 linear). secondary_rays is accepted but has no equivalent in current Painter builds, so the response lists it under failed_to_apply. More samples means less noise and a slower bake. For hero assets, ask for more samples. For background props, the default is usually fine.

Re-bake only the AO for texture set "Body" at 4096 with 512 ray samples. Leave the other maps alone.

Curvature

bake_curvature has mode, either PerVertex (the default) or PerPixel, and samples (9). Per-pixel curvature picks up normal-map detail, so edge-wear generators react to baked-in bevels as well as mesh edges.

Thickness, position and world-space normal

bake_thickness (ray_samples 64, distribution) feeds subsurface and translucency effects. bake_position (mode: Normalized or Range) and bake_world_space_normal drive gradient and directional generators, such as dust on upward-facing surfaces.

ID maps

bake_id builds the color ID map used for quick masking. Choose the source that matches how your mesh is authored. VertexColor and MaterialColor use the colors you assigned in your DCC. MeshID, PolygonGroup and SubMesh generate colors per mesh element.

Long bakes and timeouts

High-resolution AO and thickness bakes can take minutes per set. The bake tools start Painter's asynchronous bake, wait for its BakingProcessEnded event, and stop waiting at timeout_seconds. Defaults range from 120 seconds for simple maps to 600 seconds for bake_mesh_maps.

While a bake runs, Painter is busy and other tool calls may time out. Let one bake finish before asking for more edits.

Using maps baked elsewhere

If your pipeline bakes in Marmoset, Blender, Maya or xNormal, you don't need to re-bake in Painter. The mesh_map tools, available in full mode, bind external images to Painter's mesh map slots:

For texture set "Body", import D:/bakes/body_ao.png as the ambient occlusion mesh map and D:/bakes/body_curv.png as curvature, then confirm both are bound.

After baking: put the maps to work

With maps in place, the generator-driven parts of a texturing prompt start to work as expected:

Now that curvature and AO are baked: on every texture set add a fill layer FX_EdgeWear with a light worn-metal color, give it a black mask with a Curvature generator so it only shows on edges, and add a fill layer FX_Dirt with a dark brown color masked to cavities. Take a viewport screenshot when done.

That uses add_fill_layer, add_black_mask, add_mask_generator and take_viewport_screenshot. See the AI texturing workflow guide for the full layer and mask toolkit.

Baking from the terminal

The same bakes are available through painter-cli, which talks to Painter directly without an MCP client. It is useful for scripts and for checking a bake by hand:

painter-cli bake all --size 2048
painter-cli bake all --set Body --high-poly D:/Art/crate/crate_high.fbx --size 4096
painter-cli bake ao --set Body --size 2048
painter-cli bake curvature --size 2048
painter-cli bake status --set Body
painter-cli probe baked

Output is JSON. Add --raw before the group name for one-line output to pipe into jq. The exit code is 0 on success, 1 when a tool returns ok: false, and 3 when Painter can't be reached.

Troubleshooting

ValidationError: unknown map name

Map names are case-sensitive. Use AmbientOcclusion, not AO or ambient_occlusion. The error message lists the valid names.

output_size rejected

It must be a power of two between 256 and 8192: 256, 512, 1024, 2048, 4096 or 8192.

The bake times out but finishes in Painter

The tool stopped waiting before Painter finished. The maps may still have baked. Check with list_baked_mesh_maps, and next time raise timeout_seconds.

get_baking_status always says last_status "unknown"

That is expected. Painter does not expose a global "is baking" flag or keep the result of the last bake, so get_baking_status reports configuration: enabled bakers and curvature method. Use the bake tool's own response, or list_baked_mesh_maps, to see results.

High-poly bake looks offset or empty

Check the high_poly_mesh path and that the high-poly and low-poly meshes share the same pivot and scale. Match-by-name settings and cage distance are configured in Painter's baking dialog. Set them there once and the agent's bakes will reuse them.