python - 如何在 Manim 中运行自己的文件
问题描述
即使我有一个问题,你们中的一些人可能熟悉 Manim(3blue1browns 数学动画软件)。如果不是这里是 GitHub 页面(by thereom of Beethoven),它实际上只是说明了安装 - https://github.com/Elteoremadebeethoven/AnimationsWithManim/blob/master/English/0_instalation/macOS/INSTRUCTIONS.md
我的问题是我想运行我的代码而不是示例场景。如果你有答案,请告诉我。我用崇高的文字谢谢。
解决方案
好吧,您在终端中指定它:
python -m manim <name_script.py> <scene_name> -<flags>
但该文件必须在 manim 文件夹中(其中包含 manimlib 文件夹)。
推荐阅读
- windows - 我应该安装什么驱动程序来恢复“SCardTransmit got response 0x57”错误?
- javascript - 在 const a = b => b([ { var: "foo" }, { var: "baz" } ]); ba 是函数、数组还是变量?
- kubernetes - 如何使用 Kubernetes fieldSelector 查询 ownerReferences
- python - 如何使用 python 将电报机器人添加到不同的组?
- docker - Docker撰写如何将容器挂载到已经存在的新卷上
- android - 小米和OPPO限制后台服务
- javascript - 检查用户是否首次使用 react-native 访问应用程序
- multithreading - Rust - 将函数引用传递给线程
- ssh - 使用 Ansible 在 Google Cloud 虚拟实例上运行自动化
- google-apps-script - 在 G-Suite Enterprise 的 Google Apps 脚本中显示 Google Picker,无需访问 GCP