Skip to content

DecimalNumber with ValueTracker and updaters don't work #3600

Answered by uwezi
VladislavKorecky asked this question in Q&A
Discussion options

You must be logged in to vote

I think your problem is in your use of MoveToTarget which I have never seen or used before. From the description of this animation class:

(class) MoveToTarget

Transforms a mobject to the mobject stored in its target attribute.

After calling the ~.Mobject.generate_target method, the target attribute of the mobject is populated with a copy of it. After modifying the attribute,
playing the .MoveToTarget animation transforms the original mobject
into the modified one stored in the target attribute.

The emphasis is on is populated with a copy of it which means that your original a_display which gets the updater is never actually added to the scene, but only a copy of the object from the …

Replies: 2 comments 1 reply

Comment options

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

Answer selected by VladislavKorecky
Comment options

You must be logged in to vote
0 replies
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