ManimCommunity / ManimCommunity/manim

Unexpected Behavior with Create then Uncreate in Succession

Open
#3,133 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

## Description of bug / unexpected behavior

I am getting unexpected behavior when I try to Create and then Uncreate something (specifically a Dot in the example below). The red Dot is present at the beginning of the animation when it would only appear after it is created. This issue only happens when I try to subsequently Uncreate the Dot. Is there a different way of doing this? Am I misunderstanding the functionality of Succession, or is this a bug? Thanks so much!

## Expected behavior

I expect the red Dot to only appear after the white Dot is created and shifted.

## How to reproduce the issue
This is the code that reproduces the issue.

```py
from manim import *

class TestSuccession(Scene):

def construct(self):
white_dot = Dot(color=WHITE)
white_dot.shift(UP)

red_dot = Dot(color=RED)

self.play(
Succession(
Create(white_dot),
white_dot.animate.shift(RIGHT),
Create(red_dot),
Wait(1),
Uncreate(red_dot),
)
)
```

## Additional media files

https://user-images.githubusercontent.com/14181830/214108912-c83b8d77-4e21-4496-ab59-d32c2324d22b.mp4

## System specifications

- OS: macOS 12.3.1 Monterey:
- RAM: 16GB
- Python Version: 3.10.8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the TestSuccession.construct reproduction in the issue and run it to observe the red Dot appearing before it is created. Trace Succession with Create and Uncreate, then verify that the red Dot remains absent until Create runs and disappears after Uncreate.

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
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.