/game-assets:blender-character-rigfrom game-assets
Hand-builds Blender character rigs for non-standard meshes (mascots, chibi, custom bodies) that automatic auto-riggers cannot handle. Covers armature fitting, weight painting, clip-skeleton matching, and headless pipeline.
Ships in game-assets. 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 generated character is a mesh and nothing else: no skeleton, no scale, a thin double shell in several islands. An auto-rigger wants standard proportions and one watertight body; automatic weights want a surface every bone can see. A short-limbed mascot with long ears gives neither.
A standard humanoid goes to
character-autorigfirst — Auto-Rig Pro, headless, onto the humanoid contract. This skill is the hand-built fallback: a custom body that rig cannot take, or a mesh fitted to one clip pack's skeleton.
| The request or symptom | Read |
|---|---|
| "Rig this GLB" by hand: a mascot body the default auto-rig cannot take | the pipeline, then reference/import-and-survey.md |
| "Chibi / short limbs", "automatic weights failed" (bone heat on a double shell), "the ears tear when posed": the bone spec, radii, the positional rule, gradient chains, symptom → fix | reference/armature-and-skinning.md |
| "Fit my character to the mocap pack's skeleton": what may change, canonical and display scale, soles on the floor, hip width, the skin method by measured intersection | reference/fit-to-clip-skeleton.md |
A notch at the shoulder top in the bind pose, the A-pose mesh baked into the pack's T rest pose: a donor rig's weights (scripts/bcr_weight_donor.py), the bake (scripts/bcr_rest_bake.py), the gate against the modelled mesh (scripts/rest_gate.py) | reference/fit-to-clip-skeleton.md |
"Run Blender headless": stage layout (blender -b), gates JSON, exit 0/1/2, byte-identical FBX, a Unity lab outside the repo | reference/headless-pipeline.md |
| Registering the server, the cheapest probes, running a module through it (the stub, the reload order, the loader when Blender cannot read the skill directory), where a render really lands | reference/mcp-session.md |
Someone else's scene: collections, hiding, a second scene, translated UI names (KeyError 'Principled BSDF'), what to report | reference/scene-discipline.md |
| Importing the GLB, origin, height, facing, the weld, reading landmarks from slices and boxes | reference/import-and-survey.md |
| An image-to-3D GLB's inward-facing inner shell cut off before import, by visibility (host, no Blender) | reference/import-and-survey.md, scripts/shell_strip.py |
A prop in a hand: grip measured from the prop, the sanity ratio, bone parenting; a shield on the forearm (mount: forearm) | reference/prop-on-bone.md |
| Poses in armature axes, keying an action, the contact probe, chunked renders, GIF and contact sheet | reference/action-and-preview.md |
| The ship track's game mesh before rigging: regenerate at the preset, or retopology, UVs and a rebake from the showcase, gated in one headless run; its base colour repainted after the bake (S5b) | reference/game-mesh.md, scripts/game_mesh.py |
A character in parts (three): register the generated head onto the anchor, split its hair, cut, seam, gates; the hair bound by character-autorig autorig.py all --hair; fine: the hands attached under the sleeve | reference/part-assembly.md, scripts/assemble_parts.py, scripts/part_math.py, scripts/hand_parts.py |
| The ship track's mesh from parts: one mesh, one material, one atlas per map, before the rig | reference/part-assembly.md §8, scripts/ship_merge.py |
| Exporter options, clip naming, export FBX and prove it by re-import, the Unity check | reference/fbx-export.md |
| "LOD spikes": lighter skinned levels on one skeleton — hidden shells, shard props, normals, boundary weights, names Unity will not turn into a LODGroup | reference/skinned-lod.md |
| A worked example: the plush runner with long ears and a mallet, every step | reference/worked-example.md |
| The call contract of each module (its docstring) | scripts/bcr_*.py, scripts/rig_gate.py, scripts/rest_gate.py, scripts/frames_preview.py |
Nothing here is placed by eye or solved. Joints are read from slices of the mesh, weights are computed from where each vertex is, the swing is measured at the contact frame before it is rendered, and the FBX is imported back and compared.
Every step is one call to a module in scripts/ that returns a dict of gates: through the MCP
server of a Blender the user already has open, for one character explored by hand; or from a stage
script under blender -b --factory-startup --python, for a character rebuilt the same way every
time. Every module runs unchanged headless (reference/headless-pipeline.md); through the server,
a short stub imports and reloads it and result is the dict it returns (reference/mcp-session.md).
One clip pack supplies the motion? Fit, do not build. Move the pack's skeleton onto the mesh once (names, parents and rest rotations kept) and the clips play unchanged:
reference/fit-to-clip-skeleton.md. Building a skeleton from landmarks is for a custom body.
nodes["Principled BSDF"] raises
KeyError; bcr_common.node_of looks a node up by bl_idname.pass covers one step. Read a failed gate's value against its limit, change one
parameter and rerun before the next step. Calls are idempotent by name, and bcr_import_prep
and bcr_attach reuse what exists and ignore new parameters: remove the object, or put the
prop back, before a rerun. A call that raises
removes what it created; edits to datablocks that already existed are not undone..blend and gates JSON; it never opens the user's file for writing. Exit 0 pass, 1 a gate
failed, 2 refused input (the rest-bake scripts: 2 failed, 3 unreadable, 1 refused); two runs
give the same mesh hashes and FBX bytes.In order. A row is done when its gates pass or, where it says picture, when someone has looked.
| # | Step | Module / op | Passes when |
|---|---|---|---|
| 1 | Probe the session | The server's blend-file and objects summaries | File path, save state, collections, active object and mode are known before any code runs |
| 2 | Import and prep | bcr_import_prep | one_mesh, identity_scale_rotation, origin_at_base, weld_kept_faces; height as asked |
| 3 | Survey | bcr_survey | has_vertices, empty_boxes; parts reads 2 at the legs and ears, 3 where the arms hang |
| 4 | Armature | bcr_armature | bone_count, zero_length_bones, roots, pose_bones_not_xyz, deform_bones_without_radius |
| 5 | Skin | bcr_skin | unweighted_vertices 0, max_influences ≤ 4, weight_sum_error < 1e-4, deform_bones_without_vertices; no bone with a near-empty dominant_vertices |
| 6 | Extreme-pose test | bcr_pose op apply → bcr_preview still → bcr_pose op reset | Picture: nothing torn into strips, no torso dragged by an arm, no folded crease; then pose_is_rest |
| 7 | Prop on the hand bone | bcr_import_prep (weld_distance: None), then bcr_attach at the rest pose | handle_radius_ratio ≤ 0.15, world_drift_after_parenting < 1e-4 |
| 8 | Key the action | bcr_pose op key; op key_object for a target that reacts | slot_assigned, fcurves ≥ 3 per keyed bone, first_equals_last when loop is set |
| 9 | Probe contact, then preview | bcr_probe; bcr_preview in chunks; scripts/frames_preview.py on the host | distance_to_target ≤ 0.05, direction_z ≥ −0.8; frames_missing, settings_restored; exit 0; picture: the GIF and the contact sheet |
| 10 | FBX export, re-import, gate | bcr_fbx ops snapshot → export → reimport → discard, with scripts/rig_gate.py on the two snapshots | finished, file_bytes, one_armature; exit 0 on bones, parents, bone_positions, groups, bone_parents, influences, scale, action |
Numbers cannot close steps 6 and 9: a mesh passes every weight gate and still tears; a swing lands on a target that stands between the camera and the character.
scripts/shell_strip.py cuts it from the GLB before import (reference/import-and-survey.md).rig_gate.py do.<rig>|<action>.| Not here | Go to |
|---|---|
| The source image and the four-view sheet (A-pose, thick ears, no held prop) | codex-visual |
| Generating the GLB and gating its triangle and texture budget | comfyui-asset-generation |
| Retargeting stock or purchased clips onto a rig, a library of them, a grip held across clips | blender-retarget |
| IK, foot planting, facial rigs, cloth or physics bones | Not covered — this is FK on a hand-specified skeleton |
| The character's stage order: preview or ship track, the game mesh before the rig | game-character-pipeline |
| A humanoid rigged headless onto the humanoid contract: Auto-Rig Pro from measured markers, the mesh and deformation gates | character-autorig |
| Clips from two-camera video onto the contract, contact bake | humanoid-motion |
Outputs here are engine-neutral files; the engine plugin today is unity-dev:
unity-rigged-characterunity-3d-modelsunity-3d-controllerunity-debugreference/action-and-preview.md (opens in a new tab)reference/armature-and-skinning.md (opens in a new tab)reference/fbx-export.md (opens in a new tab)reference/fit-to-clip-skeleton.md (opens in a new tab)reference/game-mesh.md (opens in a new tab)reference/headless-pipeline.md (opens in a new tab)reference/import-and-survey.md (opens in a new tab)reference/mcp-session.md (opens in a new tab)reference/part-assembly.md (opens in a new tab)reference/prop-on-bone.md (opens in a new tab)reference/scene-discipline.md (opens in a new tab)reference/skinned-lod.md (opens in a new tab)reference/worked-example.md (opens in a new tab)resources/arp_unity_fold.json (opens in a new tab)scripts/assemble_parts.py (opens in a new tab)scripts/bcr_armature.py (opens in a new tab)scripts/bcr_attach.py (opens in a new tab)scripts/bcr_common.py (opens in a new tab)scripts/bcr_fbx.py (opens in a new tab)scripts/bcr_import_prep.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/art-asset-registryTrack generated 2D/3D assets in one ledger: which prompt made each file, approvals, what's stale./blender-retargetPut stock or purchased clips on a rigged character in Blender: retarget, clip library, weight repair./character-autorigRig a humanoid with a licensed Auto-Rig Pro in one command: its AI plus mesh markers, gates.Other plugins' skills for the same job
/codex-visualGenerate 2D art in one locked style: sprites, icons, pixel-art tilesets, sheets, breathing idles.npx claudepluginhub tipoli5890/game-studio --plugin game-assets