@@ -17,7 +17,7 @@ Usually, manim is ran from the command line by executing
17
17
18
18
This asks manim to search for a Scene class called :code: `SceneName ` inside the
19
19
file <file.py> and render it. One can also specify the render quality by using
20
- the flags :code: `-l `, :code: `-m `, :code: `-e `, or :code: `-k `, for low, medium,
20
+ the flags :code: `-ql `, :code: `-qm `, :code: `-qh `, or :code: `-qk `, for low, medium,
21
21
high, and 4k quality, respectively.
22
22
23
23
.. code-block :: bash
@@ -46,88 +46,78 @@ The output looks as follows.
46
46
.. testoutput ::
47
47
:options: -ELLIPSIS, +NORMALIZE_WHITESPACE
48
48
49
- usage: manim [-h] [-o OUTPUT_FILE] [-p] [-f] [--leave_progress_bars]
50
- [-a] [-w] [-s] [-g] [-i] [--disable_caching] [--flush_cache]
51
- [--log_to_file] [-c BACKGROUND_COLOR]
52
- [--background_opacity BACKGROUND_OPACITY] [--media_dir MEDIA_DIR]
53
- [--log_dir LOG_DIR] [--tex_template TEX_TEMPLATE] [--dry_run]
54
- [-t] [-l] [-m] [-e] [-k] [-r RESOLUTION]
55
- [-n FROM_ANIMATION_NUMBER] [--config_file CONFIG_FILE]
56
- [--custom_folders] [-v {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
57
- [--progress_bar True/False]
58
- {cfg} ... file [scene_names [scene_names ...]]
59
-
60
- Animation engine for explanatory math videos
61
-
62
- positional arguments:
63
- {cfg}
64
- file path to file holding the python code for the scene
65
- scene_names Name of the Scene class you want to see
66
-
67
- optional arguments:
68
- -h, --help show this help message and exit
69
- -o OUTPUT_FILE, --output_file OUTPUT_FILE
70
- Specify the name of the output file, if it should be
71
- different from the scene class name
72
- -p, --preview Automatically open the saved file once its done
73
- -f, --show_in_file_browser
74
- Show the output file in the File Browser
75
- --leave_progress_bars
76
- Leave progress bars displayed in terminal
77
- -a, --write_all Write all the scenes from a file
78
- -w, --write_to_movie Render the scene as a movie file (this is on by
79
- default)
80
- -s, --save_last_frame
81
- Save the last frame only (no movie file is generated)
82
- -g, --save_pngs Save each frame as a png
83
- -i, --save_as_gif Save the video as gif
84
- --disable_caching Disable caching (will generate partial-movie-files
85
- anyway)
86
- --flush_cache Remove all cached partial-movie-files
87
- --log_to_file Log terminal output to file
88
- -c BACKGROUND_COLOR, --background_color BACKGROUND_COLOR
89
- Specify background color
90
- --background_opacity BACKGROUND_OPACITY
91
- Specify background opacity
92
- --media_dir MEDIA_DIR
93
- Directory to store media (including video files)
94
- --log_dir LOG_DIR Directory to store log files
95
- --tex_template TEX_TEMPLATE
96
- Specify a custom TeX template file
97
- --dry_run Do a dry run (render scenes but generate no output
98
- files)
99
- -t, --transparent Render a scene with an alpha channel
100
- -l, --low_quality Render at low quality
101
- -m, --medium_quality Render at medium quality
102
- -e, --high_quality Render at high quality
103
- -k, --fourk_quality Render at 4K quality
104
- -r RESOLUTION, --resolution RESOLUTION
105
- Resolution, passed as "height,width". Overrides the
106
- -l, -m, -e, and -k flags, if present
107
- -n FROM_ANIMATION_NUMBER, --from_animation_number FROM_ANIMATION_NUMBER
108
- Start rendering at the specified animation index,
109
- instead of the first animation. If you pass in two
110
- comma separated values, e.g. '3,6', it will end the
111
- rendering at the second value
112
- --config_file CONFIG_FILE
113
- Specify the configuration file
114
- --custom_folders Use the folders defined in the [custom_folders]
115
- section of the config file to define the output folder
116
- structure
117
- -v {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --verbosity {DEBUG,INFO,WARNING,ERROR,CRITICAL}
118
- Verbosity level. Also changes the ffmpeg log level
119
- unless the latter is specified in the config
120
- --progress_bar True/False
121
- Display the progress bar
122
-
123
- Made with <3 by the manim community devs
49
+ usage: manim [-h] [-o OUTPUT_FILE] [-p] [-f] [--leave_progress_bars] [-a] [-w] [-s] [-g] [-i] [--disable_caching] [--flush_cache] [--log_to_file] [-c BACKGROUND_COLOR]
50
+ [--background_opacity BACKGROUND_OPACITY] [--media_dir MEDIA_DIR] [--log_dir LOG_DIR] [--tex_template TEX_TEMPLATE] [--dry_run] [-t] [-q {k,h,m,l}] [--low_quality] [--medium_quality]
51
+ [--high_quality] [--fourk_quality] [-r RESOLUTION] [-n FROM_ANIMATION_NUMBER] [--use_js_renderer] [--js_renderer_path JS_RENDERER_PATH] [--config_file CONFIG_FILE] [--custom_folders]
52
+ [-v {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--progress_bar True/False]
53
+ {cfg} ... file [scene_names [scene_names ...]]
54
+
55
+ Animation engine for explanatory math videos
56
+
57
+ positional arguments:
58
+ {cfg}
59
+ file path to file holding the python code for the scene
60
+ scene_names Name of the Scene class you want to see
61
+
62
+ optional arguments:
63
+ -h, --help show this help message and exit
64
+ -o OUTPUT_FILE, --output_file OUTPUT_FILE
65
+ Specify the name of the output file, if it should be different from the scene class name
66
+ -p, --preview Automatically open the saved file once its done
67
+ -f, --show_in_file_browser
68
+ Show the output file in the File Browser
69
+ --leave_progress_bars
70
+ Leave progress bars displayed in terminal
71
+ -a, --write_all Write all the scenes from a file
72
+ -w, --write_to_movie Render the scene as a movie file (this is on by default)
73
+ -s, --save_last_frame
74
+ Save the last frame only (no movie file is generated)
75
+ -g, --save_pngs Save each frame as a png
76
+ -i, --save_as_gif Save the video as gif
77
+ --disable_caching Disable caching (will generate partial-movie-files anyway)
78
+ --flush_cache Remove all cached partial-movie-files
79
+ --log_to_file Log terminal output to file
80
+ -c BACKGROUND_COLOR, --background_color BACKGROUND_COLOR
81
+ Specify background color
82
+ --background_opacity BACKGROUND_OPACITY
83
+ Specify background opacity
84
+ --media_dir MEDIA_DIR
85
+ Directory to store media (including video files)
86
+ --log_dir LOG_DIR Directory to store log files
87
+ --tex_template TEX_TEMPLATE
88
+ Specify a custom TeX template file
89
+ --dry_run Do a dry run (render scenes but generate no output files)
90
+ -t, --transparent Render a scene with an alpha channel
91
+ -q {k,h,m,l}, --quality {k,h,m,l}
92
+ Render at specific quality, short form of the --*_quality flags
93
+ --low_quality Render at low quality
94
+ --medium_quality Render at medium quality
95
+ --high_quality Render at high quality
96
+ --fourk_quality Render at 4K quality
97
+ -r RESOLUTION, --resolution RESOLUTION
98
+ Resolution, passed as "height,width". Overrides any quality flags, if present
99
+ -n FROM_ANIMATION_NUMBER, --from_animation_number FROM_ANIMATION_NUMBER
100
+ Start rendering at the specified animation index, instead of the first animation. If you pass in two comma separated values, e.g. '3,6', it will end the rendering at the second
101
+ value
102
+ --use_js_renderer Render animations using the javascript frontend
103
+ --js_renderer_path JS_RENDERER_PATH
104
+ Path to the javascript frontend
105
+ --config_file CONFIG_FILE
106
+ Specify the configuration file
107
+ --custom_folders Use the folders defined in the [custom_folders] section of the config file to define the output folder structure
108
+ -v {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --verbosity {DEBUG,INFO,WARNING,ERROR,CRITICAL}
109
+ Verbosity level. Also changes the ffmpeg log level unless the latter is specified in the config
110
+ --progress_bar True/False
111
+ Display the progress bar
112
+
113
+ Made with <3 by the manim community devs
124
114
125
115
For example, to render a scene in high quality, but only output the last frame
126
116
of the scene instead of the whole video, you can execute
127
117
128
118
.. code-block :: bash
129
119
130
- $ manim < file.py> SceneName -es
120
+ $ manim < file.py> SceneName -sqh
131
121
132
122
The following example specifies the output file name (with the :code: `-o `
133
123
flag), renders only the first ten animations (:code: `-n ` flag) with a white
0 commit comments