Created
July 13, 2025 08:13
-
-
Save uwezi/7a722dc972a88b7b7c9df55ca7878e90 to your computer and use it in GitHub Desktop.
[command line arguments] How to use command line arguments inside a Manim scene. #manim #sys #commandline #tempconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from manim import * | |
import sys | |
class clitest(Scene): | |
def construct(self): | |
args = VGroup( | |
Text(arg) | |
for arg in self.argv | |
).arrange(DOWN) | |
self.add(args) | |
with tempconfig({"quality": "low_quality", "preview": True}): | |
scene = clitest() | |
scene.argv = sys.argv | |
scene.render() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment