ManimCommunity / ManimCommunity/manim
`AnimationGroup` with an introducer doesn't work when the mobject is already in the scene
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 40.9k
- Forks
- 3.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 25
Description
Consider the following scene:
```python
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Scene reproducer and compare AnimationGroup(Write(a)) with the working cases that omit the group, omit self.add(a), or set introducer to False. Trace how AnimationGroup handles an introducer when its mobject is already in the scene; done when the grouped Write visibly animates the existing mobject.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100