manim icon indicating copy to clipboard operation
manim copied to clipboard

`AnimationGroup` with an introducer doesn't work when the mobject is already in the scene

Open sudgy opened this issue 3 years ago • 1 comments

Consider the following scene:

class Test(Scene):
    def construct(self):
        a = MathTex("a")
        self.add(a)
        self.play(AnimationGroup(Write(a)))
        self.wait()

When run, instead of writing "a" like I would expect, the Write doesn't happen at all and the screen is blank for the first second. Making it not in an AnimationGroup fixes it, manually setting introducer to False fixes it, and removing self.add(a) fixes it.

sudgy avatar Nov 23 '22 22:11 sudgy

This seems like a really weird bug with the animations system

MrDiver avatar Dec 02 '23 13:12 MrDiver