/mas-3d-games:substance-painterfrom mas-3d-games
Automates Substance 3D Painter texturing via the Python API, bakes mesh maps, packs PBR exports for Unreal/Unity, and debugs UDIM, TDR, and color-space failures.
Ships in mas-3d-games. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adobe Substance 3D Painter is a PBR texture-painting DCC. Agents should treat .spp projects as layer stacks bound to texture sets / UDIMs, bakes as high→low ray contracts (_low/_high or cages), and exports as engine-specific channel packs with explicit color spaces (sRGB vs linear). Automation runs through the in-app substance_painter Python API and, for Designer graphs, the Substance Automation Toolkit (sbscooker / sbsrender)—not the same binary.
┌─────────────────────────────────────────────────────────────┐
│ Painter bake → paint → export │
│ │
│ Mesh I/O │
│ ├── Texture sets from materials / UDIMs │
│ └── Low / high / cage naming for baker │
│ │
│ Authoring │
│ ├── Fill / Paint layers, masks, anchor points │
│ └── Triplanar / UV / Projection │
│ │
│ Pipeline │
│ ├── substance_painter Python (in-app) │
│ ├── Export presets (UE5 packed, Unity, Arnold, USD) │
│ └── SAT: sbscooker / sbsrender (Designer .sbs/.sbsar) │
└─────────────────────────────────────────────────────────────┘
Version pins: document Painter major version and export preset name in the asset README. Preset URLs and Python module shapes drift—resolve presets by search, do not hardcode fragile internal IDs when a name lookup exists.
Use when
Do not use when
sbsrender) is primary.@zbrush then retopo/UV before Painter.*_low / *_high + Match by Mesh Name; or supply an explicit cage.ResourceSearch; check ExportStatus.Run inside Painter’s Python environment (Plugins / Scripts):
"""Export all texture sets with a named preset."""
from __future__ import annotations
import os
import substance_painter.export
import substance_painter.project
import substance_painter.resource
import substance_painter.textureset
def batch_export(
output_dir: str,
preset_name: str = "Unreal Engine 5 (Packed)",
resolution: int = 2048,
) -> None:
if not substance_painter.project.is_open():
raise RuntimeError("PAINTER_PIPELINE_FAIL: no project open")
os.makedirs(output_dir, exist_ok=True)
search = substance_painter.resource.ResourceSearch(preset_name)
preset = next(search, None)
if preset is None:
raise RuntimeError(f"PAINTER_PIPELINE_FAIL: preset not found: {preset_name}")
preset_url = preset.as_url()
export_list = []
for texture_set in substance_painter.textureset.all():
export_list.append(
{
"rootPath": texture_set.name(),
"exportPreset": preset_url,
"exportParameters": [
{
"parameters": {
"padding": "infinite",
"dithering": True,
"resolution": [resolution, resolution],
}
}
],
}
)
config = {
"exportShaderParams": False,
"exportPath": output_dir,
"defaultExportPreset": preset_url,
"exportList": export_list,
}
result = substance_painter.export.export_project_textures(config)
if result.status != substance_painter.export.ExportStatus.Success:
raise RuntimeError(f"PAINTER_PIPELINE_FAIL: {result.message}")
print(f"exported {len(result.textures)} maps → {output_dir}")
# Example call — paths supplied by artist/pipeline, not invented secrets
# batch_export(r"D:\Project\Exported_Textures", resolution=4096)
SAT (Designer assets, separate toolkit):
sbscooker --inputs "D:\Materials\metal_damaged.sbs" --output-path "D:\Materials\Compiled" --output-name "metal_damaged"
sbsrender render --input "D:\Materials\Compiled\metal_damaged.sbsar" --output-path "D:\Textures\Batch" --set-value "$outputsize@11,11"
| Signature | Likely cause | Fix path |
|---|---|---|
| Normal bake seams / ray misses | Ray distance or name mismatch | Match by Mesh Name; raise frontal/rear; add cage |
| UE normals look inverted | OpenGL vs DirectX | Project normal format DirectX; invert G in preset if needed |
| Unity looks too glossy/metallic | Wrong pack / sRGB on data maps | Linear for R/M/AO; verify ORM swizzles |
| Texture set missing after reimport | Material slot rename | Preserve slot names; Re-project Layer Stack |
| GPU TDR mid-bake | Long kernel vs Windows TDR | Bake per-map; lower AA; IT-approved TdrDelay if needed |
| UDIM gaps | Missing tiles / wrong UV | Verify UDIM layout in DCC; per-tile texture sets |
{asset}_{set}_{channel} for engine importers..spp shot note.@zbrush — sculpt source for high poly@blender / @cinema-4d / @houdini — mesh/UV upstream@unreal-engine / @unity — consume packed mapsMANDATORY: Match normal map API (DirectX vs OpenGL) to the target engine. Export non-color data as linear. Resolve export presets by name and fail loudly on
ExportStatuserrors. Never invent Adobe credentials or unauthorized registry changes.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
substance-painter, pbr, mesh-baking, udim, substance-api, sbsrender
Other plugins' skills for the same job
npx claudepluginhub alivirgo/major-ai-skills --plugin mas-3d-games8 skills in this plugin
/blenderAutomate Blender scenes with the bpy Python API, build Geometry Nodes workflows, configure Cycles or EEVEE renders, and troubleshoot headless batch jobs./cinema-4dScript Cinema 4D scenes with c4dpy and the Maxon API, wire MoGraph/Fields systems, and debug Redshift GPU renders, AOVs, and headless Commandline farm jobs agents routinely miss./godotBuild Godot 4 scenes and GDScript workflows, inspect physics behavior, and configure headless project exports./houdiniAutomate Houdini with VEX and hou/hython, cook PDG/TOPs graphs, tune Vellum/FLIP/Pyro solvers, and debug Solaris/Karma XPU renders agents routinely miss./unityAutomate Unity editor and runtime workflows with C#, Addressables, render pipelines, and batch builds./unreal-engineBuild Unreal Engine workflows with Blueprints, C++, editor Python, and Unreal Automation Tool build or packaging jobs.2 plugins in one repository ship this exact skill · first indexed Oct 25, 2026