manim icon indicating copy to clipboard operation
manim copied to clipboard

Use stdin as input will generate the output video in a "-" folder. Can I modify it ?

Open zhangsn opened this issue 1 year ago • 1 comments

Description of bug / unexpected behavior

use - to input from stdin without creating a python file

manim -qm - Demo Manim Community v0.18.1

[05/29/24 05:11:55] INFO Enter the animation's code & end with an EOF (CTRL+D on Linux/Unix, CTRL+Z on Windows): [python file content] CTRL+D

The video will be generated at "/manim/media/videos/-/720p30/Demo.mp4". The folder name "-" can not be parameterized.

Expected behavior

any extra parameter to control this folder name?

zhangsn avatar May 29 '24 05:05 zhangsn

you can configure the output directory using the media_dir attribute:

https://docs.manim.community/en/stable/reference/manim._config.utils.ManimConfig.html#manim._config.utils.ManimConfig.media_dir

https://docs.manim.community/en/stable/guides/configuration.html

uwezi avatar May 29 '24 07:05 uwezi