AI-Assisted Texturing in Substance Painter: A Practical Workflow
An AI agent connected to Substance 3D Painter will not replace your hand-painted wear and storytelling details. It is very good at the structural work around them: setting up layer stacks, laying down base materials across many texture sets, wiring masks and generators, keeping names consistent and catching problems before export. This guide shows a workflow that plays to those strengths, with the real MCP Pro for Painter tool names and prompts you can adapt.
What an agent does well in Painter, and what it doesn't
| Good fit for the agent | Keep for yourself |
|---|---|
| Building a consistent layer stack in every texture set | Freehand brush strokes and hand-placed details |
| Applying smart materials and smart masks by name | Judging whether wear "reads" correctly on a silhouette |
| Setting fill colors and channel values precisely | Final color grading by eye |
| Adding masks, generators, levels and HSL effects | Painting mask detail with a stylus |
| Renaming, grouping, auditing and validating | Art direction |
| Repeating the same setup across ten assets | Deciding what the asset should look like |
The agent works through Painter's Python API, not the brush engine, so it thinks in layers, effects, channels and parameters. Plan your prompts at that level.
Mode note: the tools in this guide are available in the default and full modes. The few that are full-only are marked. If you run lite or minimal, batch operations, layer effects, project search and snapshots are not exposed.
How the agent sees your layer stack
Before changing anything, the agent reads the stack with list_layers. Each layer comes back with a uid, name, type and children. Almost every editing tool takes that layer_uid, plus an optional texture_set when the project has more than one.
New layers are placed with position and anchor_uid. add_fill_layer accepts "top", "above", "below", "inside_top" and "inside_bottom". Every position except "top" needs an anchor_uid, the layer or group you are placing relative to. You don't need to know this to prompt, but it explains why the agent lists layers first, and why "put it inside the Metal group" works.
A good first prompt on any project:
List the layer stack of every texture set as an indented tree with layer types and blending modes. Don't change anything.
Step 1: Lay down base fill layers
Fill layers are the backbone of procedural texturing, and they are where the agent saves the most clicks.
add_fill_layer: creates the layer. Its optionalcoloris an RGB triple in 0 to 1 applied to BaseColor.set_layer_material_property: sets one channel on a fill layer. Scalar channels such as Roughness, Metallic and Height take one float in 0 to 1. Vector channels such as BaseColor take a three-float list.set_layer_color: a shortcut for BaseColor.add_group,rename_layer,move_layer,set_blending_mode,set_layer_opacity: organize the stack.
In every texture set, create a group called BASE. Inside it add three fill layers: - BASE_Steel: base color 0.56, 0.57, 0.58, metallic 1, roughness 0.35 - BASE_Paint: base color 0.12, 0.22, 0.35, metallic 0, roughness 0.55 - BASE_Rubber: base color 0.05, 0.05, 0.05, metallic 0, roughness 0.8 Order them Steel at the bottom, Rubber on top.
When you work across many sets, batch_add_layer_all_sets inserts the same fill, paint or group layer at the top of every set in one call. clone_layer_stack copies an entire stack from a source set to target sets, and batch_duplicate_to_other_sets copies one finished layer, with its mask and effects, to the rest.
Step 2: Apply smart materials
Smart materials are where most of the look comes from. The agent applies them by name, so first find the exact names on your shelf:
List the smart materials available on my shelf whose names contain "metal" or "rust".
This calls list_resources with category: "smart_material" and a search string. You can also filter by shelf, such as starter_assets, your_assets or session. Then apply:
apply_smart_material: applies to one set. If you passlayer_uid, it replaces that layer's content. Otherwise it inserts a new layer.batch_apply_smart_material: adds the smart material as a new top-of-stack layer in every set, or only in thetexture_setsyou list.apply_material_presetandbatch_apply_material_preset: the same idea for plain materials.
The names below are placeholders. Use the names your own shelf returns.
Apply the smart material named "Steel Painted Scratched" to the weapon_ texture sets only. Then tell me, per set, whether it applied and which method worked.
The tools return applied and method per set rather than failing silently. If a Painter build has no scriptable apply path for a resource, you get applied: false and can apply that one by hand.
In full mode the smart material builder adds create_smart_material_from_layers, which packages layers you have built into a reusable smart material, and apply_material_with_variations, which applies one material several times with per-instance hue_shift, saturation, opacity and name. That second tool is handy for color variants of the same prop.
Step 3: Masks, smart masks and generators
A material layer usually needs a mask that limits it to edges, cavities or a specific part of the mesh. The mask tools cover the standard patterns:
| Tool | What it does |
|---|---|
add_black_mask / add_white_mask | Adds a mask that hides or shows the whole layer |
add_mask_generator | Adds a generator, such as "Mask Editor" or "Curvature", to the mask, with an optional parameters dict |
add_mask_fill | Adds a fill effect to the mask with a greyscale value from 0 to 1 |
add_mask_paint | Adds an empty paint effect for you to paint into by hand |
apply_smart_mask | Applies a smart mask preset by name |
add_mask_generator reports parameters_applied and parameters_skipped, so you can see exactly which generator settings took effect. Generator parameter names vary by generator. If you don't know them, ask the agent to inspect the effect with list_layer_properties or get_effect_property first, then set values with set_effect_property.
On BASE_Steel in every weapon_ set, add a black mask with a Curvature generator so steel only shows on the edges, then put BASE_Paint above it. Report which generator parameters you managed to set.
A mixed workflow works well here. Let the agent add add_mask_paint to the layers that need hand detail, then you paint the details yourself.
Step 4: Anchor points for layered wear
Anchor points let a generator react to details painted higher up the stack. A typical use is edge wear that also follows a hand-painted height scratch. The anchor tools make that pattern scriptable:
create_anchor_layer: creates a fill layer with a black mask and a named Anchor Point effect in one call.add_mask_anchor_point: adds an anchor to an existing layer's mask.reference_anchor_in_generator: points a generator on another layer at that anchor by name.list_anchor_points,rename_anchor_point,cleanup_unused_anchors: keep anchors tidy.
Create an anchor layer called DETAIL_Scratches with anchor name "scratches", then make the curvature generator on BASE_Steel's mask reference that anchor.
Step 5: Adjust with content effects
For non-destructive tweaks, the layer_effects tools add effects to a layer's content stack:
add_content_levels: per-channel levels withinput_min,input_max,output_min,output_maxandgamma.add_content_hsl:hue,saturationandlightnessoffsets.add_content_curvesandadd_content_filter: curves and any filter resource by name.list_content_effectsanddelete_content_effect: review and remove effects.
The paint looks too saturated on all weapon sets. Add an HSL effect to BASE_Paint lowering saturation a little, and a levels effect on its roughness channel to push it slightly rougher.
Because these are separate effects, you can toggle or delete them in Painter's UI if you don't like the result.
Step 6: Keep the stack clean
Agents are tireless at the housekeeping humans skip. Run these before handing a file to someone else or exporting:
audit_layer_stack: flags duplicate names under the same parent, empty groups, very deep nesting and unnamed layers, for one set or all sets.validate_naming_convention: checks layer and/or texture set names against a Python regex.scopeis"layers","texture_sets"or"both".find_unused_layers: lists candidates that are hidden, at zero opacity, or fill layers with no detectable content.find_empty_channels: lists channels declared on a texture set that no layer uses.check_texture_set_consistency: reports whether every texture set has the same channel list, and which channels each set is missing.batch_rename_layers: renames by pattern across the project.find_layers_by_name,find_layers_by_type,find_layers_by_blending_mode: search across every set.
Audit my project's layer names against ^(BASE|DETAIL|FX)_[A-Z][A-Za-z0-9]+$. List every layer that fails, grouped by texture set, as a table. Don't fix anything yet.
Reviewing the result
The agent can't judge a material from layer data alone, so give it eyes:
take_viewport_screenshotsaves the current viewport to a file. In Claude Code the agent can open that image and describe what it sees.- In
fullmode,take_render_previewrenders a higher-quality preview at a chosen width, height and quality. snapshot_projectbefore a big prompt anddiff_project_snapshotsafter it give you an exact list of what changed. This is the fastest way to review a batch edit.
Every layer mutation is wrapped in a scoped modification, so Ctrl+Z in Painter reverts one tool call at a time. Save the project before large batch prompts anyway.
A full example prompt
Open D:/Art/crate/crate.spp. Audit the stack for empty channels, unused layers and naming problems and show me the report first. Then for each texture set: 1. Add a BASE group with a fill layer BASE_Wood (base color 0.45, 0.30, 0.18, roughness 0.7). 2. Apply the smart material "Wood Weathered" above it. 3. Add a black mask with a Curvature generator to a new fill layer FX_EdgeWear (lighter wood color) so only edges show. 4. Take a viewport screenshot to D:/Art/crate/review.png and describe it. Don't export yet.
Expect the agent to call open_project, the validation tools, add_group, add_fill_layer, apply_smart_material, add_black_mask, add_mask_generator and take_viewport_screenshot, roughly in that order, and to stop and explain if any call returns "ok": false.
When the look is right, move on to exporting for your engine. If the mesh maps aren't baked yet, start with baking, because curvature and AO generators depend on them.