ManimCommunity / ManimCommunity/manim

Ability to bring mobject to back or front on scene while its animation.

Open
#670 3 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

In rare cases it may be useful to bring objects to front/back on scene in the middle of animation (or any time from 0 to run_time). For example, I want to be red line always be in front in illustration below. So I have to bring one of lines to back

Right now we can only remove object by the end of its animation. What do you think? How it is better to implement? Is it possible to make custom animation and pass scene instance to it and just call scene.bring_to back(self.mobject) or we have to implement it in Scene class?

![ezgif com-crop](https://user-images.githubusercontent.com/64367553/97899229-10b4c580-1d4a-11eb-88a2-5e2185ce63d2.gif)

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 by reading the Scene and custom Animation entry points mentioned in the issue, focusing on how mobjects are ordered during an animation. Define how bringing a mobject to the front or back during any part of run_time should behave, then verify that the ordering changes while the animation is still running.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.