Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

manimgx

БесплатноБез исполняемых скриптовНе проверен

Write, inspect and render ManimGX scenes: math and 3D animations in Manim Community Edition's Python API, run by the nodetool.manimgx nodes. Use for…

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

Об этом скилле

Animate with ManimGX

ManimGX renders animations written in Manim Community Edition's Python API on a Rust GPU engine. A scene is a Python module; the nodetool.manimgx nodes run it on the machine NodeTool runs on. They need manimgx installed there (ManimGX in the desktop Package Manager, or uv tool install manimgx with Python 3.13 or newer) and are absent from the hosted cloud, because a scene is a program.

Node Takes Gives
nodetool.manimgx.InspectScene code, scene_name, times, timeout ok, problems, report, storyboard, duration
nodetool.manimgx.RenderScene code, scene_name, width, height, fps, preset, crf, timeout video, storyboard, report, subtitles, duration
nodetool.manimgx.GenerateScene prompt, model, max_attempts, send_storyboard, width, height, fps, timeout video, code, storyboard, report, attempts

timeout is the limit in seconds for each ManimGX run (default 300).

GenerateScene runs the whole loop below inside one node with a language model, for up to max_attempts rounds (default 3, at most 8). Each round is a paid model call, and send_storyboard (on by default) sends the storyboard pictures to it, which needs a vision model. Confirm the model with the user before running it. Write the scene yourself when you can see the storyboard and fix it.

The loop

  1. Write the module. Start from the template under Authoring.
  2. Inspect it with InspectScene. ok: false means the scene failed: report holds the traceback trimmed to the scene's lines and a "did you mean" hint. problems: true means it ran but the 2D layout checks found clipped content, overlapping text or labels too small to read. Each problem is numbered in report and outlined on the storyboard. Look at the storyboard pictures, not only the report. 3D scenes get pictures and a timeline without layout checks.
  3. Fix and inspect again until ok is true and problems is false. To check particular moments, pass times: "1.5,end".
  4. Render with RenderScene at the size and frame rate asked for. Drafts at 1280x720 and 30 fps render in seconds. The default is 1920x1080 at 30 fps.
  5. Deliver the video and the scene's code. Save the code where the person can edit it, such as the code of a RenderScene node in their workflow.

From a code action or a Code node, call the nodes as functions:

import "@nodetool-ai/sandbox-nodetool/flow";
import { inspectScene, renderScene } from "@nodetool-ai/sandbox-flow/nodetool.manimgx";

const check = await inspectScene({ code, title: "Circle area" });
if (check.ok && !check.problems) {
  const film = await renderScene({ code, width: 1280, height: 720, fps: 30, title: "Circle area" });
}

Extra keys such as title above are the node's dynamic inputs.

Inputs from the workflow

Every node takes dynamic inputs. Their values reach the scene as a dict:

from nodetool_inputs import inputs

Numbers, strings, lists and dicts arrive as JSON. Image, audio and video inputs arrive as file paths: m.ImageMobject(inputs["logo"]) for an image, self.add_sound(inputs["voice"]) for audio.

A scene is Python that runs as the server user, with that user's file and network access. Only its environment is restricted, so it never sees the server's secrets. Treat scene code as trusted code: do not run a scene from a source the user has not vouched for.

Authoring

import manimgx as m
from nodetool_inputs import inputs


class CircleArea(m.Scene):
    def construct(self) -> None:
        circle = m.Circle(radius=1, color=m.BLUE, fill_opacity=0.3)
        formula = m.MathTex(r"A = \pi r^2").next_to(circle, m.RIGHT, buff=0.6)
        m.VGroup(circle, formula).center()
        self.play(m.Create(circle), m.Write(formula))
        self.wait(1)
  • Import manimgx as m. Put the animation in a Scene subclass's construct. With more than one scene in the module, set scene_name.
  • Time advances only through self.play(...) and self.wait(...). self.add(...) adds without animating.
  • Compose placement with VGroup, arrange, next_to, to_edge and center, so labels follow their subjects. The frame is about 14.2 units wide and 8 tall, centred on the origin.
  • Text for prose. MathTex with raw strings for LaTeX mathematics, or Typst. No LaTeX installation is needed.
  • For changing values, animate a ValueTracker and derive geometry from it. An updater uses elapsed time or current state, never a frame count, so the motion keeps its timing at any fps.
  • For 3D, derive from m.ThreeDScene: self.set_camera_orientation(phi=65 * m.DEGREES, theta=-45 * m.DEGREES), Surface, Sphere, Cube, ThreeDAxes, self.begin_ambient_camera_rotation(rate=0.5).
  • self.next_section("name") splits a film into sections. Subcaptions and self.say(...) p
Полный SKILL.md на GitHub

Установить manimgx в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл manimgx?

Write, inspect and render ManimGX scenes: math and 3D animations in Manim Community Edition's Python API, run by the nodetool.manimgx nodes. Use for equations, proofs, plots, geometry, 3D surfaces and explainer animations.

Как установить скилл manimgx?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл manimgx запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить manimgx с