Communitygithub.com

blender-modeler

Build game-ready 3D models in Blender from code, measuring a reference sheet instead of guessing and scoring every round against it (silhouette, colour regions, mesh health), then rig, animate and export GLB / FBX. Covers characters, props, vehicles, machines and modular scenery in stylised looks (faceted low-poly, smooth clay or toon, hard-surface). Use this skill whenever the user wants to create, model, remake, fix, paint, rig, animate or export a 3D model or game asset; turn concept art, a model sheet, a turnaround, a blueprint, a single image, a photo or a description into 3D; make variations of a model; clean up, paint or rig an AI-generated mesh (Meshy, Tripo, Hunyuan and the like); or check how a model arrives in Unity or a web engine. Use it even when they do not mention Blender.

What is blender-modeler?

blender-modeler is a Claude Code agent skill that build game-ready 3D models in Blender from code, measuring a reference sheet instead of guessing and scoring every round against it (silhouette, colour regions, mesh health), then rig, animate and export GLB / FBX. Covers characters, props, vehicles, machines and modular scenery in stylised looks (faceted low-poly, smooth clay or toon, hard-surface). Use this skill whenever the user wants to create, model, remake, fix, paint, rig, animate or export a 3D model or game asset; turn concept art, a model sheet, a turnaround, a blueprint, a single image, a photo or a description into 3D; make variations of a model; clean up, paint or rig an AI-generated mesh (Meshy, Tripo, Hunyuan and the like); or check how a model arrives in Unity or a web engine. Use it even when they do not mention Blender.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/luanbragas/blender-modeler/tree/HEAD/skills/blender-modeler

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Blender Modeler

Measure twice, model once. Models are built by Python scripts that Blender runs without its interface. The sizes are not guessed from looking at a picture: they are read off the reference, pixel by pixel. Every round is scored against that reference, an independent reviewer hunts for defects, and the exported file is opened again (and, for Unity, imported into the engine) before anyone calls it done.

That loop is the whole point. A model made by eye needs many rounds of "the boots look small" from the user. A model made by measurement starts close to the reference and the remaining errors come with a number and a place.

What this is good at

  • Stylised game assets: characters, creatures, props, vehicles, machines, modular scenery.
  • Looks: faceted low-poly, soft "moulded toy" low-poly, smooth clay or toon, hard-surface.
  • Starting points: a model sheet with orthographic views (best), a single image, a photo, a description, or a ready mesh that needs colour, an outline or a skeleton.

It is not the tool for photoreal organic sculpture (skin pores, cloth folds, realistic faces). Say so plainly when that is what is asked. The honest route there is a generated or bought mesh; this skill can still finish it (references/ready-meshes.md).

Setup

  • Blender 4.2 or newer (developed and tested on 5.3). Find it once and reuse the path: blender on the PATH; Windows C:\Program Files\Blender Foundation\Blender <version>\blender.exe; macOS /Applications/Blender.app/Contents/MacOS/Blender.
  • The scripts are in scripts/ next to this file. They need nothing beyond what Blender ships. refsheet.py and unity_check.py also run in a normal Python (refsheet.py then needs numpy and Pillow); without one, run refsheet.py through Blender: blender -b -P scripts/refsheet.py -- <arguments>.
  • Everything runs headless: blender -b --python-exit-code 1 -P <script.py> -- <arguments> (-b is --background, -P is --python; without --python-exit-code Blender exits with 0 even when the script crashed). A build with its check takes a minute or two: give the command a timeout of several minutes, and never start a second run into the same output folder while one is going.
  • Blender's own output is long. Send it to a log and read the report the scripts write: blender -b --python-exit-code 1 -P build_hero.py > out/build.log 2>&1; cat out/check.txt. On a failing exit code the reason is at the end of the log.
ScriptRun withDoes
refsheet.pyPython or BlenderSplits a reference sheet into views, lists its colours, saves measuring grids
runs.pyPython or BlenderWhere each colour runs, row by row or column by column, in sheet pixels: the numbers to build from (never read a grid by eye)
kit.pyimported by your build scriptPrimitives, the same primitives measured on the sheet, colour by rule, finish
check.pyimported, or BlenderScores the model against the sheet, photographs it, reports on the mesh
rig.pyBlenderJoints and animation clips for models made of parts; exports GLB and FBX
inspect_model.pyBlenderOpens an exported file and reports what is really inside
parts_by_colour.pyBlenderSplits a one-piece textured mesh into parts by colour and measures each: a glove's breadth and thickness along its length, the hair's radius all round
sections.pyBlenderReads any mesh as numbers: each piece's width, depth and roundness at every height. For comparing your build with an answer-key mesh
unity_check.pyPythonImports the model into an open Unity project and reports what Unity got
mesh_paint.py, mesh_flat_colors.py, rig_skin.pyBlenderFinish a ready-made one-piece mesh

The work, start to finish

StageOutputMove on when
1. BriefMODELING.md in the project, a short brief for this modelYou know the engine, the style, the size and what the model does
2. ReferenceA sheet with orthographic views, or a block-out the user approvedThere is something to measure
3. MeasureGrid images, palette, a list of partsEvery part has a row range, a window and a colour
4. Buildbuild_<name>.py, parts in the sceneThe build runs clean
5. Checkcheck.png, beauty.png, the scoresSilhouette and colour gates pass, mesh is clean
6. ReviewA defect list from fresh eyesNo serious defect is left
7. Rig and animateposes.png, GLB, FBXThe motion reads well and nothing tears
8. Verify the exportReports from inspect_model.py / unity_check.pyThe file holds what you think it holds
9. DeliverPictures, files, a plain summaryThe user has seen it

Do the stages in order and do not mix them in one round: when shape, colour and motion all change at once, a defect has too many possible causes. Stages 4 to 6 repeat until the gates pass.

1. Brief: ask before you model

Two things are worth knowing before any geometry exists, because they change the geometry.

The project (asked once, then remembered). Look for MODELING.md at the project root. If it is there, read it and follow it. If not, ask the project questions in references/briefing.md (engine, style, scale, how characters move, triangle budget, when the user wants to see work) and write the file. From then on every model in that project follows it, and the user is not asked again.

This model. What it is and what it does in the game, how tall it is, what moves, which details make it this thing and not a generic one. Ask only what the reference and MODELING.md do not already answer, all in one go, in the user's language, with a recommended answer for each. If the user says "you decide", decide, write the choice down and move on.

When the user corrects a matter of taste ("flat boots, no treads", "hair as one mass"), add it to the "Preferences learned" section of MODELING.md. The next model then starts from it.

2. Reference: get something you can measure

  • A model sheet (front, side, back at the same scale, plain background, no perspective) is the gold standard. When the user has one image and an image generator, give them the prompt in references/reference-sheets.md.
  • One image or a photo: measure what it shows, design the rest, and show a clay block-out (check.turnaround() renders one) before spending time on detail.
  • A description: design it in the build script with sizes in metres (examples/robot/design.py for a character, examples/forklift/design.py for a machine), render its own sheet with check.turnaround('out/sheet.png') and get that approved.
  • A ready mesh: go to references/ready-meshes.md.

The reference is only ever measured and compared against. No pixel of it goes into the model: colours are flat materials chosen by rule, shapes are built. This keeps the model clean (no baked lighting, no borrowed artwork) and makes every colour and edge something you decided.

3. Measure

python scripts/refsheet.py ref/sheet.png out/grid                     # views, dominant colours, grid images
python scripts/refsheet.py ref/sheet.png out/grid --palette seen.json   # + what each pixel was classified as

Any image Blender opens will do (PNG, JPEG, WebP). Open the grid images. Every position is read as f (fraction of the height from the top, the labels on the left) and x (pixels from the centre line, the labels on top). Name a palette from the dominant colours and save it as seen.json ({"blue": "#37427d", ...}: each material's name and its colour as it looks on the sheet), look at the _labels.png images to confirm it separates the materials, and write down for each part: its rows, its window, its colour. references/measuring.md has the whole method. The ideas that matter most:

  • Bound parts by colour and give the rows generously. f=(0.09, 0.39) with the head's colours finds where the head really starts and ends; reading the ends off the grid is off by a few pixels every time.
  • What you see of a part is what its neighbours left uncovered. Hair hides the temples, a nose hides part of the face. Add the coverer's colour to the part's colours and let the window clip it back to size.
  • Slanted parts are measured across their own axis (sheet_tube), or an angled arm comes out too thick.
  • Hidden ends are extended into the neighbour (extend=): the thinner part goes into the thicker one, so no gap opens when a joint moves.
  • Read the structure before the sizes. Enlarge the region six times in every view (a crop with a fine grid) and write down what lies on what, inside out: neck, undershirt, shirt, vest. A model with every size right and the layers wrong (a vest that swallows the shoulders, a collar painted on) is the one the user rejects.

4. Build

One build script per model, kept in the project next to its reference (art/<name>/build_<name>.py). The script is the model: to change the model, change the script and run it again. Never fix a mesh by hand, or the next run throws the fix away.

import sys; sys.path.insert(0, r'<this skill>/scripts')
from kit import *
import check

front, side, back = sheet('ref/sheet.png')                  # views in reading order
setup(1.75, palette={'blue': '#2e3b8c', 'skin': '#f79e6b'},    # height in metres; one flat material per colour
      seen={'blue': '#37427d', 'skin': '#f1a26e'})             # the same colours as they look on the shaded sheet

sheet_loft('torso', 'blue', front, side, f=(0.35, 0.64), x=(-104, 104), fc='blue', sc='blue', k=16, n=3)
mirror(sheet_loft('legL', 'blue', front, side, f=(0.66, 0.92), x=(3, 140), fc='blue', sc='blue', extend=(0.04, 0.03)))
mirror(sheet_tube('armL', 'skin', front, (96, 0.39), (170, 0.60), side, fc='skin', sc='skin', dome=(0.05, 0)))
sheet_box('badge', 'white', front, f=(0.44, 0.52), x=(30, 70), fc='white', depth=(-0.19, -0.17), bevel=0.005)

finish()                                                       # soft-facet bevel, once, at the end
report = check.run('out', closeups=['head', 'hand', 'boot'], budget=8000)   # the gates; budget from MODELING.md
save_blend('out/model.blend'); export_glb('out/parts.glb')
sys.exit(0 if report['pass'] else 1)

Without a sheet the same script starts with setup(height, palette=...) alone and uses the primitives in metres (box, prism, lathe, tube, loft): see examples/forklift/design.py.

KitUse
sheet_loftA part that stands upright: slices read from the front (widths) and side (depths) views
sheet_tubeA part that is not upright: mark its axis on the front view
sheet_limbA limb made of things in a row (sleeve, bare arm, glove cuff) as concentric tubes on one axis
closeupA close-up sheet of one piece (a head, a hand) loaded in the model's own metres: measure faces and fingers there
sheet_boxA flat detail the size the sheet shows: screen, panel, badge; round=True for an eye or a knob
sheet_prismAn outline traced on a view and pushed through: a hard-surface body, and the shapes of a face (moustache, brows, eyes, nose), with on=head to lay them on the head's surface
handA hand with separate fingers and a thumb in one part: slim, chunky (fat=), three-fingered or a mitten
loft, tube, box, blob, prism, lathe, partThe same shapes with sizes in metres, for what the sheet cannot show
rounded, prism(hole=)Round an outline's corners; a prism with a hole is a ring: a window frame with its glass inside, a bezel, a gasket
rimA wall around something, each edge's height read in the three views: a helmet's brim that rises in front and dips behind, a hat band, a collar. Level slices cannot make one
carveCuts a part out of a block by its whole outline in two views (a glove with its fingers, from its close-up); thin= for fingers and prongs
quadsEven quads over a melted skin (QuadriFlow), flat shaded: the large regular facets of a soft low-poly toy, never crumpled decimation
lay_shapeAn upright rounded shape lying on a surface: capsule eyes, nostril holes, patches (pass the skin as ob to lay it on a curving or remeshed one)
fuseMelts overlapping shapes into one skin: a head of curls, a glove with its fingers, a nose. One organic mass at a time, never the whole body
mirrorThe other side of a left / right part (names ending in L become R)
paint, bandColour by rule: cuts the mesh so borders are straight, no texture; measure stripes with view.span()
cut_out, shellOpenings by rule (armholes, a neckline), then a thickness for the shell that is left: how a garment is made
finish, outline_hullThe soft-facet look; an optional cartoon outline

Name parts for what they are and end left / right ones with L / R (legL, bootR): the rig and the close-ups rely on it. Read the docstrings in kit.py for every option. references/characters.md and references/props.md cover what to build and in what order for each kind of model.

5. Check

check.run() prints, for each view, the silhouette overlap with the sheet (IoU, 1.0 = identical), whether the error is a wrong shape or the right shape in the wrong place, the worst bands of rows with how many pixels the model is short or long on each side and which parts are there, how well the colour regions agree, and the state of the mesh. It writes check.txt (that report), check.png (reference, model, outline, difference) and beauty.png (3/4 views and close-ups), and compares each run with the one before.

RESULT PASS means every gate below held; RESULT FIX names the ones that did not.

GatePassMeaning of a miss
Silhouette IoU, each view0.94 or more (min_iou)A part is the wrong size or in the wrong place: fix the worst band first
Colour agreement, each view85% or more (min_color)A stripe, panel or sleeve is misplaced, a detail is missing, or the palette confuses two materials
Every large materialoverlaps its region on the sheet by 0.45 or more (min_material)That material is in the wrong place or the wrong shape: a vest too long, stripes off, hair as a slab
Lumpsnone thicker than 1.5% of the height (max_off)LUMP lines name the place and the parts: a flap at an elbow, a hand too long, a missing ear. A good overall score does not excuse one
Meshno inside-out or empty part, lowest point on the ground, within budget trianglesIt will break or cost too much in the engine
  • Lower a gate only for a reason you can name, and name it in the delivery. The usual one: a generated sheet whose own views disagree (the side view shorter-armed than the front) cannot reach 0.94 on all of them.
  • Without a sheet there is nothing to compare with: the report says so, only the mesh is judged, and the shape is yours to judge on beauty.png.
  • Over the triangle budget: the bevel of finish() is the biggest cost. Leave hidden under-layers out of it (finish(objs=[...])), raise its angle to chamfer fewer edges, then lower k on parts nobody studies (legs, sleeves) and max_slices on long simple ones.

Fix by the numbers: take the biggest band, change the one thing that explains it, run again. If a change did not move the picture, the cause is something else: find it before touching the same number again. If a round makes a score drop, the report says so: undo it.

Numbers are not the whole story. A silhouette cannot see a hand facing the wrong way or hair floating off the head, and a head built as a rounded box scores as well as a round one. Open beauty.png every round and look at the close-ups, and put the model next to the reference, same view, same size: what is wrong with a face shows in that pair and in no score.

6. Review: be hard on the work

The one who built a model is the worst judge of it. Before showing anything:

  1. Open the images and write the list of defects first. Defects, then what is right. Never "looks close".
  2. When you can start another agent, give the pictures to a fresh one with the brief in references/critic.md and nothing else. It has not seen the build and has no stake in it. Fix what it finds that is real, and repeat the review once after fixing.
  3. Check the list in references/defects.md: the mistakes that have already been made, with their causes.

Stop iterating when the gates pass and a review finds nothing serious, not when it is merely "better".

7. Rig and animate

Models made of parts get a skeleton with no skin weights: each part hangs rigidly from one bone, like an action figure, so nothing stretches or tears in any engine and the same bones drive a ragdoll, a vehicle or a door.

blender -b -P scripts/rig.py -- out/parts.glb rig_spec.py out

The spec lists the joints (parent, pivot, parts) and the clips. The library has idle, walk, run, jump, wave, carry_idle, carry_walk, fall, getup; your own clips are a few poses at a few frames (a nod, a fork lifting, a wheel turning). references/rigging.md has the format. Look at poses.png for every clip: a rig is judged in motion, not at rest. Limbs that pass through the body, a head that the raised arm runs into, a joint that opens a gap: all of them show there and nowhere else.

8. Verify the export

An export can drop animation, double the scale or turn the model around, and Blender will not tell you.

blender -b -P scripts/inspect_model.py -- out/hero_rigged.fbx              # what is really in the file
python scripts/unity_check.py <unity project> out/hero_rigged.fbx --height 1.75 --front nose --clips 9 --shot out/unity.png

inspect_model.py reads the file back: size, triangles, bones, and for every clip how far the model moves in it (a clip that moves 0.00 m was lost). unity_check.py imports it into an open Unity project and reports what Unity measured: height, which way it faces, materials and shaders, clips, and a picture rendered by Unity. references/engines.md covers Unity, three.js and the others.

9. Deliver

Show the user the pictures (check.png, beauty.png, poses.png), not a description of them. Then say, in plain words: what was built, the scores, where the files are, and what was not verified (no engine check, a view the sheet did not have, a detail you guessed). Offer the next step. Keep every measurement and file path out of the way unless asked: the user wants to see the model.

When to stop and show work follows MODELING.md. Without a preference: show the clay block-out when the reference was weak (one image, a description), and otherwise show the finished, checked model.

Working at full strength

  • Plan the parts before the code. A short table (part, colour, rows, window, joint it hangs from) catches most mistakes before a single render.
  • Keep the loop tight. Build, check, read the worst band, change one thing. A round costs a minute or two.
  • Many models at once. A set of props or a cast of characters can be built by several agents in parallel, each with the project's MODELING.md and its own brief. Review them together so they look like one family.
  • Variations are cheap. Change the palette and a few parts in the build script (helmet colour, hair, an accessory) and render them side by side.
  • Report truthfully. A score below the gate, a clip not looked at, an engine check not run: say it. The user can decide with a known gap; a hidden one costs them a broken build later.

Reference files

FileRead it when
references/briefing.mdStarting in a project, or starting any model: the questions and the MODELING.md template
references/reference-sheets.mdThe reference is one image or needs to be generated: what makes a sheet measurable, prompts
references/measuring.mdBefore the first build from a sheet, and whenever a measurement comes out wrong
references/characters.mdBuilding a character or creature: parts, joints, hands, hair, faces, clay versus facets
references/props.mdBuilding a prop, vehicle, machine or scenery kit: hard-surface shapes, moving parts, pivots, colliders
references/rigging.mdWriting a rig spec or a clip; choosing between rigid parts and a skinned mesh
references/ready-meshes.mdThe mesh already exists (generated, sculpted, bought) and needs colour, an outline or a skeleton
references/engines.mdExporting: Unity, three.js and other engines; what to check in each
references/critic.mdReviewing: the brief for the independent reviewer and the checklist
references/defects.mdSomething looks wrong: symptoms, causes and fixes already paid for
examples/robot/A complete small character: designed from a description, rebuilt from its own sheet, rigged
examples/forklift/A machine with moving parts: prism body, lathe wheels, a fork that slides, its own clips

Related Skills