plz-rig-model

Installation
SKILL.md

Rig a model

Attach bones, weights, and base poses to a mesh model according to a body-plan template, and produce a glb that an engine can play immediately. Bone positions come from the feature points on the model (landmarks.json); the bone set, weight methods, and poses come from the template (templates/<name>.json). So another individual with the same body plan is rigged by changing only the feature points.

There are two verified examples.

  • Bird: re-rigging a model whose rig was stripped reproduces the original bone positions, weights, and actions. The glb animation differs by at most 3.2e-05 (floating-point error of the children of hidden bones), and the scripts before and after the cat work produce the same bytes.
  • Cat (quadruped): rigging the same input twice gives identical glb bytes.

Record the check poses, self-intersection counts, rotation sign table, and angle limits of your own model in the README of the model being rigged (step 6).

Outputs

These go to the output folder (--out). If it is inside a repository, commit only when the user asks.

File Contents
<name>.glb Skinned mesh with deform bones only, plus base-pose animations. Unit m, front +Z, up +Y
<name>.blend Images packed, saved in the bind pose. Also contains the IK controls and the check action rig_test
<name>.rig-report.json Bone list, deform bones, vertex count per part, count of unweighted vertices, actions, NLA tracks
Installs
1
Repository
codekongdev/plz
GitHub Stars
2
First Seen
14 days ago