/blender-object-bundle:vegetation-modelingfrom blender-object-bundle
Models low-poly vegetation in Blender via Python generator scripts and Blender MCP. Covers trees, bushes, cacti, grass, ground cover with faceted trunks, diamond leaves, fruit clusters, wind shaders, and baked leaf pivots.
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 on a dry-forest shade tree that went through many rounds until approved. It works for any plant: shade tree, palm, cactus, bush, flowers, grass, a fallen log.
The result is a Python script that builds the plant from scratch. The script is the source; the mesh is output.
Project first: if the project has its own conventions (a CLAUDE.md, a docs page about art, a palette, material
names the engine looks for, existing trees to match, an export tool), read them before starting and follow them on
top of this skill. Existing trees in the project are the most important reference: a new tree must look like it
belongs with them.
scripts/plants.py: the plant tools (curves, faceted tubes, arched branches, leaves, leaf clouds, fruits, grass,
rocks, leaf pivots, canopy anchors, preview ground).scripts/workshop.py + scripts/rings.py: the Workshop (one bmesh, a material per face, a seeded random) and the
ring tools under it. workshop.material(name, hex) makes a flat-color material.scripts/measure.py: render(...) for review images (also reference import and measuring, if there is a model to
match).examples/shade_tree.py: a whole tree in 5 stages. The model to copy.engine/plant_wind.hlsl: reference shader code for the engine (wind with per-leaf flap, see-through dither near the
player, stippled shadow). Copy what the project needs; adapt to its shader.blender-mcp add-on running inside Blender plus its MCP server), so
the scripts 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 plant lives in its own collection; hide the rest.import sys, importlib; sys.path.insert(0, r"<skill base directory>/scripts")
import rings as R, workshop as W, plants as P, measure as M
for m in (R, W, P, M): importlib.reload(m)
examples/shade_tree.py. It only goes into the project when the user
approves.| Function | Purpose |
|---|---|
P.tube_radii(w, pts, radii, mat, sides=7) | The toy trunk/branch: one ring per given point, a radius per point, flat faces. Trunk 7 sides, limb 6, twig 5. |
P.branch_arc(w, base, tip, curl, steps) | Points of a limb: straight with one soft sine arc sideways and up. Feed them to tube_radii. |
P.grooved_tube(w, ctrl, radius(t), mat, sides, lobes, amp(t), twist, ...) | Smooth curve by floors with optional grooves: stalks, blades, cords, a seedling. Too realistic for a toy trunk. |
P.curve(ctrl, step) / P.frames(pts) / P.point_at(samples, t) | Catmull-Rom samples [(point, t)], twist-free frames, point at t. |
P.leaf(w, c, normal, length, width, fold, mat, turn) | Diamond leaf with a folded midrib and thickness (8 verts, closed). |
P.leaf_cloud(w, center, r, n, length, squash, dry, mats) | A canopy blob of n leaves near the skin, normals pulled outward, colored by light (shadow/mid/lit). |
P.light_color(normal, height, mats) | Picks shadow / mid / lit material from the normal against the sun and the height. |
P.fruit(w, c, r, mat) / P.fruit_cluster(w, base, outward, r, n, mats) | 8-sided fruit with a crown; a hanging cluster on a curved stalk. |
P.grass_blade / P.grass_tuft(w, pos, n, height, mats) / P.rock(w, pos, size, mat) | Ground cover. |
P.bake_leaf_pivots(w) | Stores each leaf center in UV maps Pivot/PivotZ for per-leaf wind in the engine. Call after lean, before build. |
P.canopy_anchors(tree, [(center, radius)], lean) | Empties <tree>_Canopy<n> (local position, scale = radius) for an engine that grows its own foliage. |
P.preview_ground(x0, x1) | A flat ground plane only for renders. |
w.lathe / w.cylinder / w.tube / w.lean / w.build | From the Workshop (see object-modeling for the full list). |
M.render(png, target, distance, elevation, azimuth, res=(w, h)) | Workbench render, 85 mm lens. |
Do:
w.lean, ~3 % of the height), limbs with random arcs.Don't:
grooved_tube; use them only if the project's trees have them.)canopy_anchors) rather than modeling a ball.core=True): only if the leaves let too much light through; usually not.Copy examples/shade_tree.py. Its STAGE global builds up to a stage, so each one can be reviewed:
tube_radii through 4 to 6 points, short and thick for a shade tree; a flared foot (a 7-sided cone);
the top closes inside the limbs.branch_arc + tube_radii (6 sides), opening early and wide; one side branch each
(5 sides). Each limb tip is the center of a canopy blob.leaf_cloud at every limb tip, plus fill blobs between tips that are close; or canopy_anchors
when the engine builds the foliage.fruit_cluster at the edge of the canopy (sides and below, never buried inside).Render after each stage (M.render, front 3/4, elevation 8 to 15°), with P.preview_ground so the buried foot and
rocks disappear like in game. Open the PNG and look at it before showing.
w.lean(vs, z0, z1, dx, dy) → P.bake_leaf_pivots(w) → w.build(...) →
P.canopy_anchors(tree, anchors, lean) (with the same lean) → ground g.build(...).w.build prints the check: open 0, non_manifold 0, extra 0. Fix any non-manifold before showing.#B36D45, BarkDark #5E2F3C, Leaf #6FCF9A, LeafShadow #58B585, LeafLight
#8FDDB1, LeafDry #E0B35A, Fruit #FFD166, FruitRipe #F79A3E, Grass #D9C36A, Stone #7C7691.engine/plant_wind.hlsl): each leaf flaps around its baked center on
a lying axis; the whole plant sways with the same gust field as the grass; grass trembles along the normal.
Fruits painted with a leaf material must not tremble (use their own material).matrix_world right after moving
the parent (stale matrix, offset counted twice). Use the local e.location (canopy_anchors does).fruit_cluster does).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arthur-pedro/blender-object-bundle --plugin blender-object-bundle3 skills in this plugin
/object-modelingModel a 3D object or building (prop, furniture, street piece, house, shop) in Blender in a stylized toy low-poly style from the requester's reference (asked for first, ideally images in 3 views), applying principles rather than copying templates, as a Python generator script driven live through the Blender MCP, or teach the user to model it by hand. Ring-by-ring ("floors") method, measured against the reference by sections, recesses with straight walls, sharp corners or a single straight chamfer, a slight bend at the end, mesh check and side-by-side renders. Use when the user asks to model, remake, polish or match a piece, or asks for help in Blender. For trees and plants use vegetation-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.Other plugins' skills for the same job