manimgl-best-practices

Guides creation of ManimGL animations using InteractiveScene, Tex, camera control, and interactive rendering workflows.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill manimgl-best-practices-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manimgl-best-practices
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/manimgl-best-practices
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill manimgl-best-practices-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires manimgl, numpy, and includes references (resource) components.

What problem does it solve? Writing animations with ManimGL (Grant Sanderson's 3Blue1Brown engine) is error-prone because it differs significantly from Manim Community Edition in imports, CLI commands, class names, and camera APIs, and its interactive development workflow is poorly documented. ## Core Features & Use Cases - API Reference Rules: Detailed rule files covering InteractiveScene, mobjects, animations, Tex with t2c coloring, 3D surfaces, camera frame control, and styling. - Working Examples & Templates: Tested example scenes (math visualization, graph plotting, 3D, updaters, attention-mechanism animations) plus copy-and-modify scene templates. - Interactive Development Workflow: Guidance on the -se flag, checkpoint_paste(), and self.embed() for iterative scene building. - Use Case: Ask the AI to write a 3Blue1Brown-style animation of a mathematical equation transformation, and it will produce correct ManimGL code using from manimlib import *, ShowCreation, and proper frame.reorient() camera control instead of ManimCE patterns. ## Quick Start Ask the AI to create a ManimGL scene that animates the equation E = mc^2 with color-coded terms and a rotating 3D camera view.

Frequently Asked Questions about manimgl-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an animation with ManimGL?

Install manimgl via pip, write a class inheriting from InteractiveScene with a construct method, and render with the manimgl CLI command. Use ShowCreation for drawing paths and Write for text, then run manimgl scene.py MyScene to preview.

What is the difference between ManimGL and Manim Community Edition?

ManimGL uses `from manimlib import *`, the manimgl CLI, InteractiveScene, ShowCreation, Tex, and self.frame for camera control. ManimCE uses `from manim import *`, the manim CLI, Scene, Create, MathTex, and self.camera.frame.

How do I use ManimGL interactive mode for debugging?

Run manimgl with the -se flag followed by a line number to drop into an interactive shell at that point. Inside the shell, use checkpoint_paste() to execute clipboard code with animations, or self.embed() in the scene to open an IPython session.

How do I control the 3D camera in ManimGL?

Access the camera through self.frame and call frame.reorient(theta, phi, gamma, center, height) to set orientation. Animate movement with frame.animate.reorient(...) and use fix_in_frame() on labels so they stay in screen space during rotation.

Why does my ManimGL code fail with Create or MathTex?

Create and MathTex are Manim Community Edition names that do not exist in ManimGL. Replace Create with ShowCreation and MathTex with Tex using capital-R raw strings like Tex(R"\pi"), and confirm you installed manimgl, not manim.

How do I color specific parts of a LaTeX equation in ManimGL?

Pass a t2c (tex_to_color_map) dictionary to Tex, for example Tex(R"E = mc^2", t2c={"E": BLUE, "m": GREEN}). You can also call set_color_by_tex on the mobject to recolor matching substrings after creation.