Manim provides out of the box the possibility of marking parts of your scene as separate sections, by using self.next_section()
. This will cause a separate video to be rendered for each section, and then all of them will be stitched together for the final result. The final result will be the same as if you hadn't used sections at all.
But the use of sections allows you to mark some of them with the parameter skip_animations=True
, and in that case, that section will not be rendered. The code of the section will be run anyway (because it may be defining objects or variables needed in following sections), but for every self.play()
, only the final frame will be computed (and not rendered). This ensures that, at the end of the section, all objects are at the same positions as if the animations were played, but skipping the actual rendering significantly reduces the time required to run the code.
In addition, the resulting video when skip_animations=True
is used will be s