A community-maintained Python framework for creating mathematical animations.
Add warning to Mobject.animate docs about usage of self.play (#5070)
Kayyz1603b31c77e181d5
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.pyindex 0084cb738..ac6f43ee5 100644--- a/manim/mobject/mobject.py+++ b/manim/mobject/mobject.py@@ -340,6 +340,16 @@ class Mobject:make use of method chaining.+ Doing the same with multiple animations for a :class:`Mobject` and+ one of its submobjects, such as with this animation::++ group = VGroup(mobject1, mobject2)+ self.play(+ group.animate.shift(RIGHT),+ mobject1.animate.set_opacity(0.5),+ )+ is also discouraged.+Keyword arguments that can be passed to :meth:`.Scene.play` can be passeddirectly after accessing ``.animate``, like so::