manim
manim copied to clipboard
`turn_animation_into_updater` does not respect `run_time` correctly
Description of bug / unexpected behavior
Multiple animations passed in turn_animation_into_updater react in an odd way, disregarding their respective run times.
Expected behavior
In the example code, it is expected to wiggle and indicate the text according to their run_time values.
How to reproduce the issue
Code for reproducing the problem
class Test(Scene):
def construct(self):
text = Tex(r"Here is some text", color=WHITE)
self.play(FadeIn(text))
turn_animation_into_updater(Wiggle(text, run_time=1))
turn_animation_into_updater(Indicate(text, run_time=1))
self.wait(2, frozen_frame=False)
A more correct result would need specific run_time values:
class Test(Scene):
def construct(self):
text = Tex(r"Here is some text", color=WHITE)
self.play(FadeIn(text))
turn_animation_into_updater(Wiggle(text, run_time=8))
turn_animation_into_updater(Indicate(text, run_time=2))
self.wait(2, frozen_frame=False)
Additional media files
Images/GIFs
https://user-images.githubusercontent.com/83535735/162446924-b066bafb-8af7-4c6c-b29e-c7ba938069e6.mp4
The correct result:
https://user-images.githubusercontent.com/83535735/162447333-826dfb1a-8593-455e-91dd-889874500578.mp4
Logs
Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR
System specifications
System Details
- OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)):
- RAM:
- Python version (
python/py/python3 --version): - Installed modules (provide output from
pip list):
PASTE HERE
LaTeX details
- LaTeX distribution (e.g. TeX Live 2020):
- Installed LaTeX packages:
FFMPEG
Output of ffmpeg -version:
PASTE HERE