blockbench-substance
БесплатноЗапускает вложенные скриптыНе проверенOptional, advanced pipeline between Blockbench and Adobe Substance 3D (Designer, Painter and the Substance Automation Toolkit command lines). Use only when…
от jasonjgardner★ 30 звёзд на GitHubОб этом скилле
Blockbench + Adobe Substance 3D
Optional and advanced. Most Blockbench work never needs this: paint with blockbench-texturing, generate with blockbench-gpt-image-textures, derive normal/MER with blockbench-albedo-to-pbr. Use this skill only when the user asks for Substance or already has .sbsar/.sbs/Painter assets. It needs a licensed Adobe Substance 3D install. Load blockbench-use first and blockbench-pbr-materials to assign results.
Substance produces image files. Blockbench stays the source of geometry and UVs. Every path ends with files imported through create_texture (data, pbr_channel) or import_texture_set.
0. Locate the tools
python scripts/sat_locate.py
Designer bundles sbsrender, sbscooker, sbsupdater and substance3d_baker, off PATH, in C:\Program Files\Adobe\Adobe Substance 3D Designer\. sbsmutator and the pysbs Python API come only with the standalone Substance Automation Toolkit. Painter is a GUI app driven over HTTP. If nothing is found, stop and tell the user; do not install Adobe software.
Pick the path
| Goal | Tool | Reference |
|---|---|---|
| Procedural material (bricks, rust, leaves) as Blockbench textures | sat_render.py → sbsrender |
sat-cli.md |
Have a .sbs graph, need an .sbsar |
sbscooker (sbsupdater first if old) |
sat-cli.md |
Edit/specialise a .sbs headlessly |
sbsmutator (SAT only) |
sat-cli.md |
| AO / curvature / ID / position masks from the model | substance3d_baker |
baker.md |
| Hand-paint the model with smart materials | Painter + painter_remote.py |
painter.md |
| Pack Bedrock MER, convert bit depth, flip normal green, shrink | prep_maps.py |
below |
Workflow A: procedural material → Blockbench
python scripts/sat_render.py material.sbsar --out out --size 16 --seed 7 \
--set Season=0.8 --normal-format directx
--sizeis pixels; the script converts to log2$outputsize(rawsbsrenderneeds'$outputsize@4,4'for 16 px). It creates--out; rawsbsrenderexits 47 if the folder is missing.- Read
inputsfrom the JSON report, then set parameters by identifier. Unknown identifiers come back aswarnings, becausesbsrenderignores them silently. - Match outputs to channels by
usages:baseColor/diffuse→ color;normal;height;metallic+roughness(orglossiness, inverted) +emissive→ MER. - Output is 8-bit by default. Tiling block textures render straight at 16/32 px. For atlases, render at the atlas size or larger and shrink.
Workflow B: bake masks from the Blockbench model
- Fix UVs: every face needs its own UV rectangle. Default per-face Auto UV on block formats stacks faces on top of each other and ruins the bake. See baker.md § Prepare.
export_model→codec_id: "gltf",options: {"encoding": "binary"},path: <abs>.glb(orobj).- Bake at 8–16× density with underscore flags (the online docs show hyphens, which fail):
substance3d_baker AmbientOcclusion.Raytraced model.glb --use_lowdef_as_highdef true --output_size 512,512 --output_path bake python scripts/prep_maps.py convert bake/*.png --out bake/64 --size 64(16-bit → 8-bit, box downsample).- Use the maps as masks: multiply AO into the colour texture, or feed them to
sbsrender --set-entry/ Painter.
Workflow C: paint in Painter, bring maps back
- Fix UVs, then
export_modelwithcodec_id: "obj". Painter cannot import glTF. - Start Painter with
--enable-remote-scripting(never--help: it opens the app), then:python scripts/painter_remote.py --ping --wait 240 python scripts/painter_remote.py --python-file scripts/painter_new_project.py --result \ --set MESH=C:/work/model.obj --set NORMAL=DirectX --set RESOLUTION=1024 --set BAKE=1 - The user paints in Painter (or you script layers after reading the local API docs).
- Export and shrink:
python scripts/painter_remote.py --python-file scripts/painter_bedrock_export.py --result \ --set OUT=C:/work/painter_out --set NAME=model --set PRESET=bedrock --set SIZE_LOG2=9 python scripts/prep_maps.py convert C:/work/painter_out/model*.png --out final --size 64bedrockgivesNAME.png,NAME_mer.png,NAME_normal.png(DirectX).gltfgives ORM + OpenGL normal. Painter never exports below 128 px, and skips maps whose channel is absent. Trust thefileslist in the result.
Pack and import
python scripts/prep_maps.py pack-mer --metallic out/m_metallic.png --emissive 0 --roughness out/m_roughness.png --out final/model_mer.png
python sc
Установить blockbench-substance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл blockbench-substance?
Optional, advanced pipeline between Blockbench and Adobe Substance 3D (Designer, Painter and the Substance Automation Toolkit command lines). Use only when the user has Substance installed and asks for it — render .sbsar procedural materials to Blockbench-sized PBR maps with sbsrender, cook .sbs graphs with sbscooker, bake AO/curvature/normal/position/ID maps from a Blockbench export with substance3d_baker, drive Substance 3D Painter over its remote-scripting HTTP API to paint a Blockbench model and export Bedrock MER or glTF maps, and pack results into texture_set.json. Triggers on Substance, Substance 3D, Substance Designer, Substance Painter, SAT, Substance Automation Toolkit, sbsar, .sbs, sbsrender, sbscooker, sbsmutator, sbsupdater, sbsbaker, substance3d_baker, pysbs, bake AO for Blockbench, Painter export to Blockbench. Not needed for ordinary painting, generated textures or derived normal maps.
Как установить скилл blockbench-substance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blockbench-substance запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic