question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More clarity of the use updater and ValueTracker

See original GitHub issue

There are now so many ways to update mobjects, and I am getting confused by it. One thing that I really find strange is the dt parameter. Here I have three examples of updaters: https://manimce--526.org.readthedocs.build/en/526/examples/test.html

  • Number 1 is working
def my_updater(mobj,dt):
       mobj.shift(UP*0.01)
  • Number 2 is not working (Only difference to 1: the dt parameter is removed)
 def my_updater(mobj):
      mobj.shift(UP*0.01)
  • Number 3 is working again (Only difference to 2: a valuetracker is added)
v_tracker = ValueTracker(0)
def my_updater(mobj):
      mobj.shift(UP*0.01)

How do we want to get this more intuitive? Maybe getting rid of the dt parameter in updater?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
behacklcommented, May 28, 2022

At the time being, there are time-based and non-time-based updaters, and the distinction (occasionally) makes sense. I think the clarity regarding which type of updater to use when would improve by cleanly separating their interfaces, #321 – and one issue is enough to track this, so I propose closing this one.

0reactions
leotrscommented, Nov 21, 2020

#752 will close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueTracker - Manim Community v0.17.1
A mobject that can be used for tracking (real-valued) parameters. Useful for animating parameter changes. Not meant to be displayed. Instead the position ......
Read more >
How to update a simple number on the screen with a variable ...
Im using DecimalNumber and thought to update or set_value of the number property ... include_sign=True, unit=None) tracker = ValueTracker(0).
Read more >
manim set_z_index with value_tracker - python - Stack Overflow
Most people use AnimationGroup to pass the lag_ratio keyword argument. And sometimes, for custom mobjects, you might want to build a custom ...
Read more >
Trigger simulated input value change for React 16 ... - GitHub
I'm trying to trigger the input/change event on a React form outside react using pure JS or jQuery. With react-dom 15.6.0 you were...
Read more >
Simple ValueTrack Setup for Adwords Tracking - WhatConverts
ValueTrack gives you a more powerful automated tracking that allows you ... your tracking updates across multiple URLs, you can use a shared ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found