Skip to main content
Built by Best ROI MediaMITWave 1 · LiveBestRoiMedia/anim-toolkit

anim-studio

Gate-enforced 2D frame inking, cleanup, vectorization, and manifest publishing pipeline.

End-to-end 2D animation production runner that enforces character-bible feature checks, chroma-key cleanup, OpenToonz/vtracer vectorization, motion gates, and SHA-256 manifest sealing before any frame set can publish.

View on GitHub ↗
Quick clonegit clone https://github.com/BestRoiMedia/anim-toolkit.git
GitHub repositoryBestRoiMedia/anim-toolkit
Module path_tools/anim/studio/
LicenseMIT
Release waveWave 1
LanguagesPython · JSON

Why we built it

When AI models ink or clean animation frames, subtle drift—a flipped satchel, wrong palette shade, or dropped ornament—breaks character consistency. We built anim-studio so agents cannot ship unverified frames: every candidate must pass free structural, palette, and motion gates before optional vision judging and cryptographic manifest publication.

Architecture & how it works

Given a job JSON, character bible, and pose guides, studio.py orchestrates frame generation (supporting OpenAI image APIs, built-in tool-managed requests, or local inkers), chroma-keying, guide registration, palette locking, and centre-line vectorization via OpenToonz (with automatic vtracer fallback). Candidates are tested against POSE, FEATURES, PALETTE, and SIZE gates, followed by sequence-wide MOTION checks via onion.py, optional vision judging with per-frame caching, and publication into a SHA-256-verified PASS_MANIFEST.json. It also supports assembly jobs that re-time verified key sets via xsheet.py at zero image-generation cost.

Key capabilities

  • Free per-frame structural QA gates (POSE, FEATURES, PALETTE, SIZE) before any paid vision judge call
  • Automatic chroma-keying, guide registration, palette locking, and OpenToonz/vtracer centre-line ink vectorization
  • Resumable job execution with per-drawing judge caching and strict image/judge budget caps
  • Diagnostic triage sheets (triage.png + triage.json) comparing guide, raw ink, cleaned frame, and overlay
  • Zero-spend assembly mode for re-timing verified key publications using xsheet.py
  • Cryptographic PASS_MANIFEST.json verification (studio.py verify) that detects post-QA tampering

Usage example

Validate, run, and verify a studio animation jobPython
python3 anim/studio/studio.py doctor
python3 anim/studio/studio.py validate ./jobs/walk.json
python3 anim/studio/studio.py next ./jobs/walk.json
python3 anim/studio/studio.py run ./jobs/walk.json
python3 anim/studio/studio.py verify ./drawn/walk
Supports builtin, local, and API inker backends. Budget defaults to 0 for safety and must be explicitly configured in the job JSON.