Animate a concept with ManimGX
Run xpd animate to inspect, render, and revise an editable ManimGX video from a built-in starter recipe or your own scene across Linux, macOS, and Windows. If you use the xpd agent plugin, ask the agent in plain language to animate any concept in your project.
Browse sibling ManimGX primitives offline
Section titled “Browse sibling ManimGX primitives offline”Before writing scene code, inspect the bundled ManimGX 0.1.1 module catalog to compare sibling primitives deliberately instead of reaching for the first familiar class.
xpd animate catalogxpd animate catalog motion --jsonxpd animate catalog easingSet up the runtime once
Section titled “Set up the runtime once”xpd animate setup creates a managed uv virtual environment under ~/.local/share/xpd/animate/ with pinned manimgx==0.1.1 on Python 3.14. Text and LaTeX math use bundled Typst and Noto fonts, video encoding uses bundled x264, and Linux wheels bundle Mesa lavapipe for CPU fallback when no Vulkan GPU is present. Starter recipes and guides work offline.
xpd animate doctorxpd animate setupxpd animate doctor --jsonInspect, render, and revise a scene
Section titled “Inspect, render, and revise a scene”Inspect a scene first without encoding video to check the timeline, annotated storyboard, and 2D layout diagnostics (clipped mobjects, overlapping text, lines or fills over text, and small labels).
xpd animate guide sequence > cache_miss.pyxpd animate inspect cache_miss.py CacheMiss --jsonxpd animate start cache_miss.py CacheMiss --jsonUse the returned run ID in place of RUN. Approve revision 1 if the first preview is ready.
After editing, submit a new revision and inspect its preview before approving it.
xpd animate revise RUN --revision 1 --note "Hold the last frame longer" --jsonxpd animate status RUN --jsonxpd animate approve RUN --revision 2 --jsonThe project holds source bundles and render artifacts under .xpd-animate/. Duroxide stores
review history in SQLite under $XDG_STATE_HOME/xpd/animate, defaulting to
~/.local/state/xpd/animate. Run commands from the same project directory so xpd can find its history.
Approval renders the saved revision even if the working files have changed. Use
xpd animate resume RUN to recover an interrupted render. For a standalone render, use
xpd animate render with one of the following profiles.
| Profile | Output | Resolution |
|---|---|---|
draft |
Fast MP4 and annotated storyboard | 854 by 480 at 15 fps |
preview |
MP4 and annotated storyboard | 1920 by 1080 at 60 fps |
final |
MP4 and annotated storyboard | 3840 by 2160 at 60 fps |
still |
PNG of the last frame | 1280 by 720 |
Pass --asset <path> (relative to the project root) for any helper module, image, audio clip, or data file, and resolve assets inside Python via Path(__file__).parent.
xpd animate render scenes/chart.py SalesChart --profile draft \ --asset scenes/data/monthly.csv --jsonRender from local MCP
Section titled “Render from local MCP”Start xpd mcp --root . and call the three animate_ tools over stdio. Run xpd animate catalog, xpd animate guide, and xpd animate inspect in the shell.
| MCP tool | Purpose |
|---|---|
animate_status |
Check managed ManimGX runtime readiness |
animate_render |
Render a file path, inline source.files map, or from_job revision with draft, preview, final, or still |
animate_artifact |
Retrieve contact_sheet (default), video, still, subtitles, source, manifest, or log by job_id |
Clients without filesystem access can submit inline source text directly to animate_render.
{ "scene": "CircleDemo", "profile": "preview", "source": { "entry": "circle.py", "files": { "circle.py": "import manimgx as m\n\nclass CircleDemo(m.Scene):\n def construct(self) -> None:\n self.play(m.Create(m.Circle()))\n" } }}