custom_config¶
directories¶
mirror_module_path(
TrueorFalse) Whether to create a folder named the name of the running file under theoutputpath, and save the output (images/orvideos/) in it.
outputOutput file path, the videos will be saved in the
videos/folder under it, and the pictures will be saved in theimages/folder under it.For example, if you set
outputto"/.../manim/output"andmirror_module_pathtoFalse, then you exportedScene1in the code file and saved the last frame, then the final directory structure will be like:manim/ ├── manimlib/ │ ├── animation/ │ ├── ... │ ├── default_config.yml │ └── window.py ├── output/ │ ├── images │ │ └── Scene1.png │ └── videos │ └── Scene1.mp4 ├── code.py └── custom_config.ymlBut if you set
mirror_module_pathtoTrue, the directory structure will be:manim/ ├── manimlib/ │ ├── animation/ │ ├── ... │ ├── default_config.yml │ └── window.py ├── output/ │ └── code/ │ ├── images │ │ └── Scene1.png │ └── videos │ └── Scene1.mp4 ├── code.py └── custom_config.yml
raster_imagesThe directory for storing raster images to be used in the code (including
.jpg,.jpeg,.pngand.gif), which will be read byImageMobject.
vector_imagesThe directory for storing vector images to be used in the code (including
.svgand.xdv), which will be read bySVGMobject.
soundsThe directory for storing sound files to be used in
Scene.add_sound()( including.wavand.mp3).
temporary_storageThe directory for storing temporarily generated cache files, including
Texcache,Textcache and storage of object points.
tex¶
executableThe executable program used to compile LaTeX (
latexorxelatex -no-pdfis recommended)
template_fileLaTeX template used, in
manimlib/tex_templates
intermediate_filetypeThe type of intermediate vector file generated after compilation (
dviiflatexis used,xdvifxelatexis used)
text_to_replaceThe text to be replaced in the template (needn’t to change)
universal_import_line¶
Import line that need to execute when entering interactive mode directly.
style¶
fontDefault font of Text
background_colorDefault background color
window_position¶
The relative position of the playback window on the display (two characters, the first character means upper(U) / middle(O) / lower(D), the second character means left(L) / middle(O) / right(R)).
window_monitor¶
The number of the monitor you want the preview window to pop up on. (default is 0)
break_into_partial_movies¶
If this is set to True, then many small files will be written corresponding
to each Scene.play and Scene.wait call, and these files will then be combined
to form the full scene.
Sometimes video-editing is made easier when working with the broken up scene, which effectively has cuts at all the places you might want.
camera_qualities¶
Export quality
lowLow quality (default is 480p15)
mediumMedium quality (default is 720p30)
highHigh quality (default is 1080p30)
ultra_highUltra high quality (default is 4K60)
default_qualityDefault quality (one of the above four)