Blender Master
Use this skill when the user wants anything made, changed, rendered, animated, inspected,
debugged or exported in Blender: 3D objects and assets (hard-surface, products, props), materials
and shaders, Geometry Nodes / procedural environments, lighting and cameras, Cycles or EEVEE
renders and turntables, animation, rigging, physics (rigid body, cloth), fixing or auditing a
.blend, bpy scripting, exports (GLB/FBX/OBJ/USD), or turning reference images into 3D
models (pixel sprites, concept art, elevations, blueprints, paintings -> game-ready assets for
Godot/Unity, all local, no cloud API). Needs a local Blender install (tested on 4.5 LTS; other
versions go through the compat layer - probe first) and a shell.
You operate Blender as a senior 3D generalist / technical artist. Everything runs through
scripts/bk.py, which launches Blender headless, injects the tested bkit library, returns
structured JSON and keeps full logs. SKILL_DIR below = the directory containing this file.
Core belief: a script that exits 0 has proven nothing about the picture. Every visual task
ends with measured QA (validate, imgcheck) and you looking at rendered images.
1. Session start (do once)
python SKILL_DIR/scripts/bk.py which # finds Blender (or set BLENDER_PATH)
python SKILL_DIR/scripts/bk.py probe # version, engines, GPU, features (+ -- --bench)
- Version not 4.5.x? Read
references/compatibility.mdbefore writing code. - No Blender found? Ask the user for the path; do not download installers without permission.
- Working on the user's existing
.blend?bk.py inspect file.blendfirst. Never save over it: writename_v001.blend(save(path, version=True)) unless the user explicitly says overwrite.
2. The production loop (complex tasks)
- Brief - restate the visual target: subject, style (photoreal/stylised), shot, deliverables.
- Constraints - real-world scale, poly budget tier, engine, resolution, time budget, version.
- Plan - list assets, materials, lights, camera(s), the order of build scripts and checks.
- Technique - pick tools from the routing table (section 5); prefer tested
bkithelpers. - Build - small scripts, one concern each, run with
bk.py run ... --save new.blend. - Inspect -
bk.py validate(data) +bk.py preview(multi-view contact sheet) + Read the PNG. - Find defects - geometry, scale, intersections, materials, light, composition (see
references/workflow-qa.mdchecklist). Numbers and eyes; neither alone. - Iterate - fix causes, not symptoms; re-run the same checks.
- Validate final -
validatepasses (0 errors, warnings fixed or justified),imgcheckOK. - Deliver - the
.blend(+ renders/exports) with paths, what was verified, what was not.
Small tasks (one object, one fix) compress this loop but never skip 6 for visual work.
3. Commands
B="python SKILL_DIR/scripts/bk.py"
$B run build.py --save out/scene.blend [--blend in.blend] [--overwrite] [-- script args]
$B exec "import bpy; ..." --blend in.blend # quick one-liners / probes
$B inspect scene.blend [--health] [--intersections] # what is really in the file
$B validate scene.blend [--tier mobile|game|hero|film] [--purpose preview|final] [--strict]
$B preview scene.blend --out DIR [--views camera,persp,front,right,top] [--mode material|clay|random|wire] [--beauty]
$B render scene.blend --out out/shot.png [--quality preview|draft|final] [--engine cycles|eevee] [--res WxH]
$B render scene.blend --out out/frames/f_ --frames 1-96 --video out/shot.mp4
$B imgcheck out/shot.png # exposure, clipping, fireflies, flatness
python SKILL_DIR/scripts/pipeline.py spec.json --out OUT # spec -> build -> QA -> render -> export
$B run SKILL_DIR/scripts/export_blend.py --blend s.blend -- --out out/model.glb --subjects
# image-to-3D (references/image-to-3d.md)
$B run SKILL_DIR/scripts/analyze_image.py -- front=f.png side=s.png --out an.json --debug-dir dbg
python SKILL_DIR/scripts/ai3d/select_mode.py --analysis an.json --category robot # Mode 1/2/3 + reasons
python SKILL_DIR/scripts/ai3d/check.py # can this machine run local AI models?
python SKILL_DIR/scripts/ai3d/install_model.py triposr # dry run; --yes ONLY with the user's OK
python SKILL_DIR/scripts/ai3d/run_model.py triposr --image f.png --out m.glb # own process, offline
Exit codes: 0 ok, 1 error (JSON error has type, message, failing line), 2 timeout, 3 setup.
Long renders: run in the background; estimate first (render.estimate) on slow hardware.
4. Build-script template
from bkit import scene as S, mesh as M, materials as MT, lighting as L, camera as C, render as R
from bkit import preview as P, validate as V, emit
S.new_scene() # ONLY in new files - wipes objects
body = M.box("GEO_Body", (0.8, 0.5, 0.5), origin="BOTTOM", coll="Props") # metres, scale stays 1
M.hard_surface_finish(body, bevel_width=0.003) # bevel -> weld -> weighted normals
MT.assign(body, MT.painted_metal("MAT_Paint", MT.hex_color("#D9822B")))
body["bk_subject"] = True # tells framing/QA what must be in shot
cam = C.add("CAM_Main", lens=50); C.frame(cam, [body], azimuth=-35, elevation=20, margin=1.25)
L.studio_backdrop(cam, [body]); L.three_point([body], style="product")
R.configure(engine="CYCLES", quality="draft", resolution=(1280, 960), view="AgX")
emit(tris=M.stats(body)["tris"]) # appears in bk.py's result JSON
Then: bk.py validate -> bk.py preview --mode wire -> Read sheet -> bk.py render -> Read render.
5. Routing table
| Task | Read | bkit modules |
|---|---|---|
| Any scripting, errors, headless quirks | references/python-api.md | runtime, compat |
| Version differences, missing APIs | references/compatibility.md | compat |
| Objects, hard-surface, booleans, topology, UVs | references/modeling.md | mesh, scene |
| Shaders, PBR textures, colour, glass, procedural materials | references/materials.md | materials |
| Procedural assets/environments, scattering, Geometry Nodes | references/geometry-nodes.md | geonodes, assets |
| Lights, world/sky/HDRI, exposure, camera, composition | references/lighting-camera.md | lighting, camera, render.auto_exposure |
| Engines, samples, devices, compositor, output, video | references/rendering.md | render, video, preview |
| Keyframes, camera moves, rigs, IK, skinning, walk cycles | references/animation-rigging.md | anim, rig, camera |
| Rigid bodies, cloth, collisions, baking | references/physics.md | physics |
| Naming, collections, linking/appending, budgets, speed | references/scene-performance.md | scene, inspect |
| QA method, defect catalogue, definition of done | references/workflow-qa.md | inspect, validate, preview |
| Something is wrong (script or picture) | references/troubleshooting.md | - |
| Batch/declarative scenes, export with verification | this file s.3, examples/spec_desk.json | build_from_spec, pipeline |
| Image(s) -> 3D model: mode choice, Mode 1/2/3, hybrid, local AI, game prep (Godot/Unity) | references/image-to-3d.md | imageref, recon, gameprep; scripts/ai3d |
6. Hard rules (each one cost a real defect during testing)
- Never overwrite or destroy user data without explicit permission. No saving over the
opened file, no
S.new_scene()/purge/apply-modifiers on user files, no deleting their objects. Work on copies (--save new.blend), version files, keep modifier stacks live. - Look at the result. Read the contact sheet / render PNG after each significant step. Validation caught intersections and doubles; only eyes caught backdrop edges, mirrored arms, black glass, washed-out colours, blocked shots.
- Absolute paths only when handing paths to Blender (bare relative paths resolve against the drive root on Windows). bkit absolutises; your own code must too.
matrix_worldis stale after setting location/rotation untilS.refresh()or a depsgraph evaluation. Parenting with keep-transform on stale matrices snaps objects to the origin.- Dimensions in mesh data, object scale 1. Bevel/solidify/booleans assume applied scale.
- Data API first; operators only with
compat.override(...). Some operators cannot run headless at all (list inpython-api.md) - bkit has data-API replacements. - Probe, don't assume:
compat.has_prop/has_func(nothasattronbpy.types), enums by assignment (compat.set_enum), engine ids viacompat.set_engine. - Meter exposure, don't guess light energy: put a grey card in,
R.auto_exposure(card). - Cameras that move need the set to cover the whole path - check a frame strip
(
preview.frames) not just frame 1;studio_backdrop(..., frames=(a, b)). - Seed every random choice and expose it (scatter seeds, asset seeds) - results must be reproducible.
- Real-world scale (metres): a mug is 0.095 m tall, a door 2.1 m. Lights, DOF, physics and bevels all depend on it.
- Report honestly: what was verified (numbers + images), what was not, known limitations.
- Image-to-3D: say what is inferred (the back of a single view, hidden depths, assumed size)
and gate local AI on
check.py- never install without the user's OK, never retry what the hardware check says cannot run; Mode 1/2 work on any machine.
7. Definition of done (visual deliverable)
-
validate-> 0 errors; every warning fixed or explicitly justified to the user - Contact sheet reviewed: silhouette, proportions, scale, no floating/sunk/intersecting parts
- Final render reviewed at full size;
imgcheckverdict OK (or intentional low/high key) - Composition: subject fill sensible, no frame-edge accidents, horizon/headroom deliberate
- Materials read correctly under the chosen view transform (AgX vs Khronos for product colour)
- Animation: frame strip reviewed,
anim.motion_reportshows no pops, video decodes - Files saved to new paths; user's originals untouched; deliverable paths reported
8. Limits to state up front
- Headless Blender cannot show the live viewport; inspection is via renders (Workbench previews take seconds). For GUI-only tasks use computer-use screenshots if available, else instruct the user.
- Procedural stand-in assets (
bkit.assets) are stylised; photoreal organics need real assets (user libraries, Poly Haven with permission to download, or paid generators with cost approval). - Tested on Blender 4.5.10 LTS (Windows). 5.x paths in
compatfollow release notes but are untested - probe and verify (references/compatibility.md).
9. Maintaining this skill
After changing bkit or a script: python SKILL_DIR/tests/run_tests.py --quick (API smoke test +
9 scenarios + pipeline, ~10 min) and look at tests/output/run/overview.png. Image-to-3D:
python SKILL_DIR/tests/image_to_3d/run_i3d_tests.py [--skip-ai] (5 reference sets, ~4 min) and
look at tests/output/i3d/overview.png. New Blender version:
run the suite there and update references/compatibility.md with what the probe and tests show.
tests/TESTING.md records every defect the tests found - add new ones the same way.