/blender-object-bundle:object-modelingfrom blender-object-bundle
Models 3D objects and buildings in Blender in a stylized toy low-poly style using Python generator scripts via Blender MCP. Uses ring-by-ring method with reference images.
Ships in blender-object-bundle. 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; scripts run unread.
A method proven in practice (a street lamp, benches, mailboxes, houses, a shop, a corner store). It works for any object with a reference: bench, lantern, sign, fence, mailbox, hydrant, house...
The result is a Python script that builds the piece from scratch. The script is the source; the mesh is output.
Principles, not templates. This skill is a shortcut to the principles and good practices that get to the piece the requester wants. It is not a house to copy and paste. The examples and the ready pieces show the principles applied once; every new piece starts from its own reference (ask for it, always) and keeps what defines it. A gate asked for is modeled from that gate's reference, in the style, never "our gate" again.
Project first: if the project has its own modeling conventions (a CLAUDE.md, a docs page about art, a
palette, material names, an export tool), read them before starting and follow them on top of this skill.
scripts/rings.py: build the piece ring by ring (rings, steps, recesses, bend, check).scripts/measure.py: import the reference, measure sections, compare and render.scripts/workshop.py: the Workshop of small details (crooked box, lathe, tube, tiles, planks, stones, bar,
bush) and the building tools profile, bend_roof, lean. Also material(name, hex).scripts/architecture.py: ready architecture pieces (window, door, awning, valance, lantern, sign, bench, pot,
chimney) and the stylized ones (protruding frame, framed window, roof plate, sconce, potted plant with big leaves).
Starting points: use one as is only when the reference asks for that same piece; otherwise adapt it or write a new
one.examples/street_lamp.py: a whole lamp post with the method. The structure to copy for objects.examples/cottage.py: a whole house with the method. The structure to copy for buildings (copy the method and the
order of the steps, never the look).blender-mcp add-on running inside Blender plus its MCP server), so
the scripts can run live with execute_blender_code and you can call get_scene_info and
get_viewport_screenshot. Without the MCP, run the same scripts in the background:
blender -b --factory-startup -P <script.py>.bpy, bmesh, mathutils).get_scene_info. Each piece lives in its own collection ("My Lamp",
"My Bench"...). Hide the rest (exclude other collections from the view layer)..py files:
import sys, importlib; sys.path.insert(0, r"<skill base directory>/scripts")
import rings as R, measure as M, workshop as W, architecture as A
for m in (R, M, W, A): importlib.reload(m)
examples/street_lamp.py. It only goes into the project when the user approves.| Function | Purpose |
|---|---|
M.import_reference(fbx, obj, name, x=2, turn_z=0) | Brings the reference next to the piece, base on the floor, locked. Children (glass, lights) are deleted. |
M.bounds(name) / M.floors(name, zmin, zmax, cx) / M.sections(name, zs, cx) | Total size, heights holding vertices and widths per height. |
M.compare(mine, ref, zs, cx_mine, cx_ref, radius, axis) | Table by height (or by x with axis="x"); <-- marks differences over 1 cm. |
M.colors(ref) / M.colors_to_materials(ref) | Reference colors (hex, faces, mean height) and conversion to materials so the render shows them. |
M.render(png, target, distance, elevation, azimuth, res=(w, h)) | Workbench render, 85 mm lens. |
R.ring / R.polygon / R.stack / R.bridge / R.step | Rings and walls. stack takes (z, width, chamfer, depth) for rectangular pieces. |
R.side_faces + R.recess | Panel or window as a recess, on one face or a column of upright faces. |
R.rotate / R.move | Lay down or place a block (slat, arm, rail) after building and recessing it. |
R.bend / R.close / R.check | Slight crookedness, weld and normals, closed mesh. |
w = W.Workshop(MATS, seed) | Many pieces in one bmesh, each with its material and a repeatable random; w.build(name, collection, pos) welds, checks and creates the object. |
w.box(c, size, mat, chamfer, rot, taper, segments) / w.bar(p0, p1, section, mat) | Crooked block; segments = long piece that bends along. Bar = straight piece between two points (brace). |
w.lathe([(z, r)], mat, sides) / w.tube(points, radius, mat, smooth) | Round by floors (globe, barrel, pot); curved tube (hose, pipe). |
w.roof(L, W, H, mats, tile) / w.planks(...) / w.stones(...) / w.bush(...) | Tiles one by one, planks, loose stones, bush with flowers. |
w.profile(vs, [(z, fx, fy)]) | Walls by floors: slices everything at the floors and scales x/y; details follow the belly. |
w.bend_roof(vs, L, W, sag, saddle, curl, z0, ramp) | Drawn roof: concave slopes, ridge dipping in the middle, ends curling up. |
w.lean(vs, z0, z1, dx, dy) | The piece or the whole building leans. |
A.window / A.door / A.awning / A.valance / ... | Architecture pieces built facing -Y, base at z = 0. |
A.frame / A.framed_window / A.roof_plate / A.sconce / A.potted_plant / A.big_leaf / A.scroll | Stylized pieces: fat protruding frame with marked chamfers, window with cornice, sill and few thick bars, big roof plate with fat ribs, oversized lantern, pot with big leaves, iron scroll. |
Do:
architecture.py; examples, not the answer): a window with a fat
frame jutting 17 cm, cut corners, cornice and sill (A.framed_window); a gate leaf with a thick frame, one fat
arch and a round medallion instead of nested thin arches; roof sheets as big plates with 2 fat ribs in overlapping
rows (A.roof_plate); a 1.25x lantern with a bulging glass (A.sconce); a pot with a few big folded leaves
(A.potted_plant); parapet tiles as one row of big thick plates with cut corners in two alternating colors.Do not:
When unsure about a taste (chamfer or sharp corner, how much to bend), render both options and ask.
M.import_reference(fbx, "<object in the fbx>", "Reference_<Piece>", x=2.0). The base goes to z=0, the
piece sits at x=2, locked (hide_select).Before any code, write down for the user, in a short list:
Confirm the list when anything is unclear; it is cheaper than remodeling.
M.bounds(name): total box (width, depth, height).M.floors(name, zmin, zmax, cx=2.0): heights where the reference has vertices. Shows how it was built: ledges,
waists, window edges, and how many vertices per ring (4 = sharp corner, 8 = chamfer).M.sections(name, zs, cx=2.0): width and depth at each height. Cut at the heights that matter: edges, waists, the
middle of each block.M.sections(name, [-0.9, 0, 0.9], cx=..., radius=..., axis="x") gives depth and height at each x.x = width + 1 m) and pass radius = half the width + margin,
so the sections do not catch the other piece.M.render. Numbers give the size; the image gives the
character.(z, width[, chamfer]):
R.polygon with 6 to 10 sides, never smooth.(z, width, chamfer, depth). Example: a 1.9 m x 17 cm x 7 cm slat
with a 1 cm chamfer:
before = set(bm.verts)
R.stack(bm, [(0, 0.07, 0.01, 0.17), (1.9, 0.07, 0.01, 0.17)]) # width 7 becomes the thickness when laid down
slat = set(bm.verts) - before
Then R.rotate(bm, slat, 90, "Y") lays it along +X (0 to 1.9) and R.move(bm, slat, (-0.95, y, height)) centers it.
min/max of the vertices: rotating around the wrong axis is the most common mistake.[v for r in rings for v in r] plus the recess ones, or the set difference.check works per block.R.rotate with a few degrees (8 to 15). Toy-like, no curve needed.examples/street_lamp.py.R.close -> R.bend -> R.close -> R.check -> object.exec(compile(open(p, encoding="utf-8").read(), p, "exec"), {"__file__": p, "NAME": "My_<Piece>"}).R.recess(bm, faces, side, depth, bottom, top). Works on one face or a column of faces on a curved wall.
bottom=0 or top=0: the recess touches the edge and the neighbor face (e.g. the lid ledge) becomes its ceiling.R.side_faces before cutting the first recess.R.ring(bm, z, w, chamfer=c). In practice 3 to 6 cm; small pieces 1 to 2 cm.R.step.lid_ring in the lamp example).R.bend(bm, z0, z1, dx, dy), always at the end. With small values the recess walls stay almost straight.A building is also a lamp post. Detail only in the accessories is not enough: with plumb walls and a ruler-straight
roof, the house looks "straight" even full of small things. Copy examples/cottage.py and follow the rules:
Walls by floors, never a plumb box: floor, waist, top.
PROFILE = [(z, fx, fy)] with three floors only: the floor (1.0), one waist about halfway up (0.97-0.98)
and the top (1.025-1.05). The wall bends once, a single crease in the middle, like a "<" lying down.Build straight and deform together. Build the wall, posts, windows, door, awning and lantern straight in a
wall group and pass everything through w.profile(wall, PROFILE). The profile slices the mesh at the floors and
scales x/y, so every detail follows the wall belly.
ground group).A drawn roof, never flat. Use w.bend_roof:
sag ~0.2 m: each slope concave;saddle ~0.15 m: the ridge dips in the middle;curl ~0.2 m: the ends rise.To keep things attached:
z0 = eave, ramp up to the top of the wall.z0 above the gable beam. Otherwise the beam bends into a "smile".z_e += sag * sin(pi * y_wall / W)).Caricature overhangs:
taper ~1.9);Stylize the accessories too (see "Stylized and minimal" in the style): each window, gate, railing, roof covering, lamp and plant of the reference, thickened, fewer, jutting, with marked chamfers. A house with bent walls but realistic accessories reads as "only the walls were stylized".
Each piece sits crooked:
The whole building leans at the end: w.lean with 2 to 3 % of the height in x and an arc in y.
Order: build everything straight -> profile on the wall -> bend_roof on the roof and the wall (both calls)
-> lean on everything -> build.
Check from the front and the side (elevation 0 to 2 degrees): no long perfectly vertical or horizontal line. If the side render looks like a technical drawing, profile, bend or lean is missing.
Common pitfalls (each one happened):
R.close merges coincident vertices).
Give stacked pieces 1 cm of difference (e.g. a window head 1 cm wider than its jambs; a wall slab that sinks 1 cm into
its neighbor instead of ending exactly on its face).R.check(bm) (or w.build) must give open 0, non_manifold 0, extra 0.M.compare(mine, ref, zs, cx_mine=0, cx_ref=2): table by height, <-- marks differences over 1 cm. Goal: all
within 1 cm, unless the user asked otherwise.M.render("<folder>/<piece>-compare.png", target, distance, elevation, azimuth):
check result and the remaining difference.M.colors(ref) lists the reference colors and where they are (mean height).#F8A658, DarkWood #B36D45, Iron #4E4A66, Stone #7C7691, Lamp #FF6A1F (glass that glows), Cream
#FFF1D6, Sage #91AD78, Flower #ED719F, Gold #FFD166, Navy #1B1F3A.f.material_index per block: keep the faces each bridge/stack returns, or select by height band and normal.
The recess backs come from R.recess.Short steps, one at a time, waiting for "done". Before explaining, check what the user did through the MCP: the mode, what is selected and the floors. Seeing the user's selection helps:
o = bpy.context.active_object; bm = bmesh.from_edit_mesh(o.data)
print(o.mode, tuple(bpy.context.tool_settings.mesh_select_mode), [tuple(round(c, 3) for c in o.matrix_world @ v.co) for v in bm.verts if v.select])
Shortcuts (mouse over the viewport):
| Shortcut | What it does |
|---|---|
| Shift+A -> Mesh -> Cube | Add a piece. The menu is at the top left, "Add". |
| Tab | Toggle object mode and edit mode. |
| 1 / 2 / 3 | Select vertex, edge or face. |
| G / S / R + axis + number | Move, scale or rotate precisely. E.g. G Z 0.2 Enter, S Shift+Z 0.9 (scale without Z). |
| E | Extrude. |
| I | Inset: a frame inside the face. |
| Ctrl+R | Loop cut. |
| Right click -> Subdivide, then J | Split only one face: J joins the two vertices. |
| X -> Dissolve Vertices | Delete a vertex without opening a hole. |
| M -> At Center | Merge vertices. |
| N | Panel with the exact coordinates of the selection. |
| Numpad 1 / 3 / 7 | Front, side and top view. |
| Ctrl+A -> Scale | Apply scale. |
Pitfalls seen in practice:
When a manual step gets long or risky (a recess with straight walls, a curve with many floors), offer "I'll do this step for you". Do it through the generator and explain what changed.
profile with floor, waist and top: one crease), drawn roof (sag, saddle, curl),
pieces set crooked and the whole house leaning; front and side renders without long ruler lines.check with open, non_manifold and extra = 0.compare within 1 cm (or the difference explained).LICENSE (opens in a new tab)README.md (opens in a new tab)examples/cottage.py (opens in a new tab)examples/street_lamp.py (opens in a new tab)scripts/architecture.py (opens in a new tab)scripts/measure.py (opens in a new tab)scripts/rings.py (opens in a new tab)scripts/workshop.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
blender, 3d-modeling, low-poly, python-scripting, blender-mcp
3 skills in this plugin
/vegetation-modelingModel trees, bushes, cacti, grass and ground cover in Blender in a toy low-poly style, as Python generator scripts driven live through the Blender MCP. Faceted trunks and arched limbs (few sides, never smooth), canopies of real diamond leaves lit like a ball (or anchors for an engine foliage system), fruit clusters, a separate ground object with fallen leaves, grass tufts and rocks, baked leaf pivots for in-engine wind, and a reference shader for wind, see-through near the player and stippled shadows. Built in stages, each reviewed with renders. Use when the user asks for a tree, plant, bush, grass, flowers or any vegetation. For objects and buildings use object-modeling./vehicle-modelingModel a car, van, truck or any wheeled vehicle in Blender in a toy low-poly style, caricature but detailed, as a Python generator script driven live through the Blender MCP. An assembly line built bottom up, one stage at a time with the user's approval (platform, axles and knuckles, springs, wheels, hollow body shell carved by cutters, doors/hood/hatch that open on hinges, recessed glass with frames, flares, lights, details, interior, camera and cargo slots), every piece a separate object with its pivot so it can become a mechanic in the game, and a flat FBX export the engine can read by name. Use when the user asks for a vehicle (from a reference sheet or photos), to change one, or to take one to a game. For props and buildings use object-modeling; for plants use vegetation-modeling.npx claudepluginhub arthur-pedro/blender-object-bundle --plugin blender-object-bundleOther plugins' skills for the same job