首页 > 解决方案 > 如何在 Manim 中运行自己的文件

问题描述

即使我有一个问题,你们中的一些人可能熟悉 Manim(3blue1browns 数学动画软件)。如果不是这里是 GitHub 页面(by thereom of Beethoven),它实际上只是说明了安装 - https://github.com/Elteoremadebeethoven/AnimationsWithManim/blob/master/English/0_instalation/macOS/INSTRUCTIONS.md

我的问题是我想运行我的代码而不是示例场景。如果你有答案,请告诉我。我用崇高的文字谢谢。

标签: pythonterminalmanim

解决方案


好吧,您在终端中指定它:

python -m manim <name_script.py> <scene_name> -<flags>

但该文件必须在 manim 文件夹中(其中包含 manimlib 文件夹)。


推荐阅读