jeertmans / manim-slides

Tool for live presentations using manim
https://manim-slides.eertmans.be
MIT License
410 stars 44 forks source link

Force re-render in manim-slides #408

Open semikernel opened 2 months ago

semikernel commented 2 months ago

Please explain the issue you're experiencing (with as much detail as possible):

Hi, there. I found that sometimes I just change the background color in the front of my code and want to render it again.

config.background_color = BLACK
# config.background_color = WHITE  # 

However, the manim-slides will simply use the cached files and won't render again, unless I deleted every file it will re render again. Is there anyway else to force render a class again? Thx a lot~:)

jeertmans commented 2 months ago

Hello!

Is it Manim Slides that skips re-rendering (because we re-use cached file for concatenated and reversed files), or is it Manim (it also uses cached files, based on a hash function, that I guess does not rely on config :-/).

In the latter case, you can use manim-slides render slide.py Slide --disable_caching.

Regarding Manim Slides, there is a class option, but this does not read from the CLI at the moment. I should somehow check if the --disable_caching option was passed and use it.