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
text_alignmentDefault text alignment for LaTeX
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)
full_screen¶
Whether open the window in full screen. (default is false)
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_resolutions¶
Export resolutions
lowLow resolutions (default is 480p)
mediumMedium resolutions (default is 720p)
highHigh resolutions (default is 1080p)
ultra_highUltra high resolutions (default is 4K)
default_resolutionsDefault resolutions (one of the above four, default is high)
fps¶
Export frame rate. (default is 30)