Skip to main content
Built by Best ROI Media · First-Party IntegrationMIT (CLI) / GPL-3.0-or-later (Blender add-on)Wave 1 · LiveBestRoiMedia/anim-toolkit

bonion

Headless Blender onion-skinning, bone-motion QA, retiming, and lip-sync wrapper.

AI-facing headless Blender wrapper that runs OpenToonz-style onion-skinning, bone-level motion QA, exposure-sheet retiming, gaze/eye rigging, and lip-sync verification on .blend, .fbx, and .glb scenes.

View on GitHub ↗
Quick clonegit clone https://github.com/BestRoiMedia/anim-toolkit.git
GitHub repositoryBestRoiMedia/anim-toolkit
Module path_tools/anim/blender/
LicenseMIT (CLI) / GPL-3.0-or-later (Blender add-on)
Release waveWave 1
LanguagesPython · Blender Python (bpy)

Why we built it

3D character rigs exported for games often hide quaternion flips, Euler wraps, foot sliding, or mesh ground penetration that only show up after engine import. We built bonion to inspect and retime Blender actions headlessly without modifying source scenes, emitting exact bone names, keyframe numbers, and EEVEE look sheets.

Architecture & how it works

bonion.py invokes Blender in factory-startup background mode with bonion_core.py, capturing a single JSON verdict on stdout while leaving the input scene untouched. It groups identical consecutive poses into exposures so held frames are never misflagged as pops, evaluates world-space bone tails and root heads for POP, OUTLIER, SEAM, ARC, FOOT_SLIDE, PENETRATION, and NO_MOTION, and diagnoses root causes like QUAT_FLIP, EULER_WRAP, STRAY_KEY, or STEPPED. Subcommands also handle stepped retiming, Rhubarb/Preston Blair lip-sync baking, eye/gaze presets, and multi-angle EEVEE visual review gating.

Key capabilities

  • Bone-level motion QA with root-cause diagnosis (QUAT_FLIP, EULER_WRAP, STRAY_KEY, STEPPED)
  • Foot-slide and ground-penetration checks normalized to rig size (supports in-place treadmill cycles)
  • Stepped action retiming on ones/twos/threes or from anim/xsheet.py exposure sheets
  • Automated Preston Blair lip-sync onto shape keys or jaw bones with per-cue verification
  • Multi-view EEVEE look-sheet rendering and mandatory visual review gate recording
  • Self-contained procedural rig self-test suite (bonion_selftest.py)

Usage example

Check a Blender walk cycle, retime on twos, and record visual reviewPython
python3 anim/blender/bonion.py doctor
python3 anim/blender/bonion.py check ./character.blend --action walk --loop --view side --out ./review/walk
python3 anim/blender/bonion.py retime ./character.blend --action walk --on 2 --save ./character_twos.blend
python3 anim/blender/bonion.py review ./review/walk --verdict PASS --note "Clean arc and contact" --judge look_side.png="No foot slide"
Blender is resolved via BLENDER_BIN, PATH, or the default macOS application path. Source scenes are never modified unless --save is explicitly passed.