Packs / 3d-blender-animation-public
rig-animate-character
Rig a character (armature + automatic weights), keyframe a motion and export an animated, skinned GLB; plus the rigging lessons from our vector-rig work (elbow joints, rotation-invariant joint discs, review at 10-20 fps).
Install
logicpacks pack use 3d-blender-animation-public/rig-animate-characterget_pack 3d-blender-animation-public/rig-animate-characterThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-blender - Checks: 1 in
outcome/checks.yaml - Code:
glb_info.pyrig_demo.py - Tools: blender, python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Rig a character (armature + automatic weights), keyframe a motion and export an animated, skinned GLB; plus the rigging lessons from our vector-rig work (elbow joints, rotation-invariant joint discs, review at 10-20 fps).
Goal
Produce an animated character file an engine or web viewer can play: mesh bound to an armature, a named action, exported as GLB with skin + animation.
Steps
- Model or import the character mesh (FBX/OBJ/GLB) and apply scale/rotation (Ctrl-A).
- Add an armature with real joints for every bend the motion needs (neck, waist, shoulders, ELBOWS, wrists, hips, knees, ankles).
- Parent mesh to armature with automatic weights (
object.parent_set(type='ARMATURE_AUTO')), then fix weights where limbs collapse. - Keyframe the action on the beat if there is music (measure BPM, place key poses on beats).
- Export GLB with animations:
blender -b --python code/rig_demo.py -- --out out/character.glbshows the full scripted path on a demo body. - Verify with
python3 code/glb_info.py out/character.glb: skins >= 1, animations >= 1. - Review the motion by pulling real frames at 10-20 fps (ffmpeg) or in the three.js viewer, not sparse filmstrips.
Edge cases
- A limb without an elbow cannot do raised-arm poses: it renders as a plank. Cut limbs at the joint.
- For 2D/vector rigs give both halves of a joint the same disc centred on the pivot; a disc is rotation invariant so no seam opens at any bend.
- Anything drawn behind a moving feature (eye sockets, brow, hairline) must be solid, or the background shows through when the feature moves.
- Verify the rotation sign on a test render first (in some 2D tools positive rotation is clockwise on screen).
- Long arms raised to ~120 degrees turn into horizontal bars across the frame; keep poses asymmetric so two arms don't overlap into one stick.
- Sparse filmstrips alias: a 500 ms strip against a 518 ms swing hides a broken loop.
Don'ts
- Don't use leaked or unlicensed production rigs/assets; build or license your own character.
- Don't animate flat cut-out thumbnails and call it a rig: nothing bends, it always reads as paper.
- Don't approve a motion from a single still.