Skip to content

Problem with a replacement transformation #3747

Answered by behackl
arnaudflavier asked this question in Q&A
Discussion options

You must be logged in to vote

When you play the two animations

self.play(ReplacementTransform(q,l),ReplacementTransform(n,l))

something odd happens that I'm not entirely sure I can fully explain. My best guess without investigating further is that the formula you store in l somehow gets added to the scene twice. To avoid this sort of issue, you can group the two source mobjects together first and then transform the group, like this:

self.play(ReplacementTransform(VGroup(q, n), l))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arnaudflavier
Comment options

Answer selected by arnaudflavier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants