mcpField
M
manimce-best-practices

manimce-best-practices

github.com/adithya-s-kクリエイティブ・メディア1.2k4.0k 回インストール40 週間前に更新
リポジトリ

manimce-best-practices について

Manim Communityユーザー向けのリファレンススキルで、アニメーションシーンの作成とレンダリングの指針や例をまとめています。ManimGLとの違いも示し、バージョン固有の間違いを避けるのに役立ちます。

主な機能

  1. 01シーン、オブジェクト、アニメーションの規則
  2. 02テキスト、数式、スタイルのガイド
  3. 03配置、グラフ、3Dの解説
  4. 04検証済みの例とシーンテンプレート
  5. 05CLI、設定、トラブルシューティング

活用シーン

  1. 01Manim Communityのシーン設計
  2. 02数式やグラフのアニメーション作成
  3. 03レンダリングコマンドやオプションの確認

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/adithya-s-k/manim_skill --skill manimce-best-practices

インストール後、Claude Code で/manimce-best-practicesを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

LICENSE.txt
examples/
3d_visualization.py
basic_animations.py
graph_plotting.py
lorenz_attractor.py
math_visualization.py
updater_patterns.py
examples/attention/
__init__.py
helpers.py
scenes.py
rules/
3d.md
animation-groups.md
animations.md
axes.md
camera.md
cli.md
colors.md
config.md
creation-animations.md
graphing.md
grouping.md
latex.md
lines.md
mobjects.md
positioning.md
scenes.md
shapes.md
styling.md
text-animations.md
text.md

詳細

使用方法

詳しい説明とコード例については、各ルールファイルをお読みください。

コアコンセプト
作成と変形
テキストと数式
スタイルと外観
配置とレイアウト
座標系とグラフ作成
アニメーション制御
設定と CLI
  • rules/cli.md - コマンドラインインターフェース、レンダリングオプション、品質フラグ
  • rules/config.md - 設定システム、manim.cfg、設定項目
図形と幾何
  • rules/shapes.md - Circle、Square、Rectangle、Polygon、幾何学の基本図形
  • rules/lines.md - Line、Arrow、Vector、DashedLine、コネクター

動作するサンプル

よく使われるパターンを示す、完全なテスト済みサンプルファイルです。

Scene テンプレート

これらのテンプレートをコピーして変更し、新しいプロジェクトを始めましょう。

クイックリファレンス

基本的な Scene の構造
from manim import *

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

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

        # Or animate
        self.play(Create(circle))

        # Wait
        self.wait(1)
レンダリングコマンド
# Basic render with preview
manim -pql scene.py MyScene

# Quality flags: -ql (low), -qm (medium), -qh (high), -qk (4k)
manim -pqh scene.py MyScene
3b1b/ManimGL との主な違い
機能Manim Community3b1b/ManimGL
インポートfrom manim import *from manimlib import *
CLImanimmanimgl
数式テキストMathTex(r"\pi")Tex(R"\pi")
SceneSceneInteractiveScene
パッケージmanim (PyPI)manimgl (PyPI)
Jupyter Notebook のサポート

%%manim セルマジックを使用します。

%%manim -qm MyScene
class MyScene(Scene):
    def construct(self):
        self.play(Create(Circle()))
よくある落とし穴と回避方法
  1. バージョンの混同 - manimgl(3b1b 版)ではなく、manim(Community)を使用していることを確認してください
  2. インポートの確認 - from manim import * は ManimCE、from manimlib import * は ManimGL です
  3. 古いチュートリアル - 動画チュートリアルは古くなっている場合があります。公式ドキュメントを優先してください
  4. manimpango の問題 - テキストのレンダリングに失敗する場合は、manimpango のインストール要件を確認してください
  5. PATH の問題(Windows) - manim コマンドが見つからない場合は、python -m manim を使用するか、PATH を確認してください
インストール
# Install Manim Community
pip install manim

# Check installation
manim checkhealth
便利なコマンド
manim -pql scene.py Scene    # Preview low quality (development)
manim -pqh scene.py Scene    # Preview high quality
manim --format gif scene.py  # Output as GIF
manim checkhealth            # Verify installation
manim plugins -l             # List plugins

コメント