Command Palette

Search for a command to run...

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

manimgl-best-practices

БесплатноЗапускает вложенные скриптыНе проверен

Trigger when: (1) User mentions "manimgl" or "ManimGL" or "3b1b manim", (2) Code contains `from manimlib import *`, (3) User runs `manimgl` CLI commands, (4)…

adithya-s-kот adithya-s-k★ 1 391 звезда на GitHub

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

How to use

Read individual rule files for detailed explanations and code examples:

Core Concepts

Creation & Transformation

Text & Math

  • rules/tex.md - Tex class, raw strings R"...", and LaTeX rendering
  • rules/text.md - Text mobjects, fonts, and styling
  • rules/t2c.md - tex_to_color_map (t2c) for coloring math expressions

Styling & Appearance

3D & Camera

  • rules/3d.md - 3D objects, surfaces, Sphere, Torus, parametric surfaces, lighting
  • rules/camera.md - frame.reorient(), Euler angles, fix_in_frame(), camera animations

Interactive Development

Configuration & CLI

  • rules/cli.md - manimgl command, flags (-w, -o, -se, -l, -h), rendering options
  • rules/config.md - custom_config.yml, directories, camera settings, quality presets

Working Examples

Complete, tested example files demonstrating common patterns:

Scene Templates

Copy and modify these templates to start new projects:

Quick Reference

Basic Scene Structure

from manimlib import *

class MyScene(InteractiveScene):
    def construct(self):
        # Create mobjects
        circle = Circle()

        # Add to scene (static)
        self.add(circle)

        # Or animate
        self.play(ShowCreation(circle))  # Note: ShowCreation, not Create

        # Wait
        self.wait(1)

Render Command

# Render and preview
manimgl scene.py MyScene

# Interactive mode - drop into shell at line 15
manimgl scene.py MyScene -se 15

# Write to file
manimgl scene.py MyScene -w

# Low quality for testing
manimgl scene.py MyScene -l

Key Differences from ManimCE

Feature ManimGL (3b1b) Manim Community
Import from manimlib import * from manim import *
CLI manimgl manim
Math text Tex(R"\pi") MathTex(r"\pi")
Scene InteractiveScene Scene
Create anim ShowCreation Create
Camera self.frame self.camera.frame
Fix in frame mob.fix_in_frame() self.add_fixed_in_frame_mobjects(mob)
Package manimgl (PyPI) manim (PyPI)

Interactive Development Workflow

ManimGL's killer feature is interactive development:

# Start at line 20 with state preserved
manimgl scene.py MyScene -se 20

In interactive mode:

# Copy code to clipboard, then run:
checkpoint_paste()           # Run with animations
checkpoint_paste(skip=True)  # Run instantly (no animations)
checkpoint_paste(record=True) # Record while running

Camera Control (self.frame)

# Get the camera frame
frame = self.frame

# Reorient in 3D (phi, theta, gamma, center, height)
frame.reorient(45, -30, 0, ORIGIN, 8)

# Animate camera movement
self.play(frame.animate.reorient(60, -45, 0))

# Fix mobjects to stay in screen space during 3D movement
title.fix_in_frame()

LaTeX with Tex class

# Use raw strings with capital
Полный SKILL.md на GitHub

Установить manimgl-best-practices в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

LICENSE.txtexamples/attention_arcs_animation.pyexamples/attention_pattern_dots.pyexamples/attention_scenes.pyexamples/attention_softmax_masking.pyexamples/autoregressive_flow.pyexamples/basic_multihead.pyexamples/bloch_sphere_3d.pyexamples/block_collision_basic.pyexamples/blocks_3d.pyexamples/collision_phase_space.pyexamples/complex_s_plane.pyexamples/cost_function.pyexamples/cube_projection_3d.pyexamples/damped_solutions_splane.pyexamples/dot_product_visualization.pyexamples/double_slit_interference.pyexamples/eigenvalue_equations.pyexamples/eigenvector_flow_field.pyexamples/eigenvector_matrix_transformation.pyexamples/elastic_collision_vectors.pyexamples/embedding_matrix.pyexamples/equation_transforms.pyexamples/exponential_derivative.pyexamples/fibonacci_eigenvalues.pyexamples/gradient_descent_basic.pyexamples/hexagon_cube_correspondence.pyexamples/integration_visualization.pyexamples/laplace_integral.pyexamples/light_polarization.pyexamples/linear_regression.pyexamples/llm_prediction_pipeline.pyexamples/lorenz_attractor.pyexamples/lozenge_tiling.pyexamples/max_random_process.pyexamples/mlp_forward_pass.pyexamples/mlp_network_icon.pyexamples/mlp_neuron_activation.pyexamples/mlp_neurons_flow.pyexamples/mlp_relu_visualization.py

FAQ

Что делает скилл manimgl-best-practices?

Trigger when: (1) User mentions "manimgl" or "ManimGL" or "3b1b manim", (2) Code contains `from manimlib import *`, (3) User runs `manimgl` CLI commands, (4) Working with InteractiveScene, self.frame, self.embed(), ShowCreation(), or ManimGL-specific patterns. Best practices for ManimGL (Grant Sanderson's 3Blue1Brown version) - OpenGL-based animation engine with interactive development. Covers InteractiveScene, Tex with t2c, camera frame control, interactive mode (-se flag), 3D rendering, and checkpoint_paste() workflow. NOT for Manim Community Edition (which uses `manim` imports and `manim` CLI).

Как установить скилл manimgl-best-practices?

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

Скилл manimgl-best-practices запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить manimgl-best-practices с