title: Manim, ReplacementTransform without Transform
body: <p>I'm new to manim.</p>
  <p>as with following example,</p>
  <pre class="lang-py prettyprint-override"><code>class scene_example(Scene):
      def construct(self):
          txt1 = Text(&quot;Text1&quot;)
          txt2 = Text(&quot;Change to this text without animation&quot;)
  
          self.play(FadeIn(txt1))
          self.play(ReplacementTransform(txt1, txt2))
  </code></pre>
  <p>Is there any convenient function for &quot;Replace&quot; the txt1 to txt2? (i.e., without the &quot;transforming&quot; animation?)</p>
  <pre class="lang-py prettyprint-override"><code>class scene_example(Scene):
      def construct(self):
          txt1 = Text(&quot;Text1&quot;)
          txt2 = Text(&quot;Change to this text without animation&quot;)
          
          self.play(FadeIn(txt1))
          self.play(FadeOut(txt1), FadeIn(txt2) )
  </code></pre>
  <p>This code will do what I want, but I feel that there might function like ReplacemnetTransform to fulfill the simple &quot;Replacement&quot; animation. I tried to make a function for FadeIn and then FadeOut but, that doesn't work.</p>
  <pre class="lang-py prettyprint-override"><code>class q(Scene):
      def construct(self):
          def Replace(self, mObj1, mObj2):
              self.play(FadeIn(mObj1),FadeOut(mObj2))
  
          txt1 = &quot;HI&quot;
          txt2 = &quot;HI2&quot;
  
          self.play(FadeIn(txt1))
          Replace(txt1, txt2)
  </code></pre>