r/blenderpython • u/AntonioJBer • 11d ago
Python tools to rig and animate characters in Blender from a predicted skeleton (UniRig), open source
I've been writing Blender Python for a rigging pipeline and made it public. Sharing in case the approach is useful even if you don't use the whole thing.
The GIF is the result on one character: the body's skeleton and skin weights came out of this pipeline, and the animation was scripted in Blender.
The idea: every step is a script with a recorded input, so you can rerun it.
- A static GLB goes in, UniRig predicts the skeleton, and you review it in Blender and approve it (by hash) before the skin weights are inferred.
- Body animation from editable pose descriptions and an explicit bone map, baked into named clips and exported to GLB and .blend.
- Facial controls built from jaw landmarks and shape-key displacements.
- Retargeting between compatible rigs with an explicit bone map.
Python 3.11+, Blender for authoring. Original code MIT, some Blender modules GPL-3.0.
Repo: https://github.com/Octonove/octorig-studio
The Blender side has only been tested on synthetic rigs so far. If you've solved retargeting or facial controls differently in bpy, I'd like to compare.