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.

Problems with cached data in a scene with .add_updater [SCENE CACHING]

See original GitHub issue
class UpdaterExample(Scene):
    def construct(self):
        path = VMobject()
        dot = Dot()
        path.set_points_as_corners([dot.get_center(), dot.get_center()])

        def update_path(path):
            previus_path = path.copy()
            previus_path.add_points_as_corners([dot.get_center()])
            path.become(previus_path)

        path.add_updater(update_path)
        self.add(path, dot)
        self.play(Rotating(dot, radians=PI, about_point=RIGHT, run_time=2))
        self.play(dot.shift, UP)
        self.play(dot.shift, LEFT)

When I run this script the first time, I get this:

UpdaterExample However, when I run it again, without any changes, I get this: UpdaterExample and the following output in the terminal:

INFO      Animation 0 : Using cached data (hash :                   scene.py:807
          64312035_2472655632_2531679001)                                       
INFO                                                    scene_file_writer.py:616
          File ready at /home/kolibril/Downloads/Upd                         
          aterExample.gif                                                       
                                                                                
INFO      Rendered UpdaterExample                                   scene.py:120
          Played 3 animations    

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Aathish04commented, Aug 24, 2020

My hunch is that the scene cacher only saw the positions of the Dot before and after, not taking into consideration the path that it travelled.

0reactions
kolibril13commented, Oct 15, 2020

yeey! Closing Transition #339 in favour of #339 ? I think there was a typo 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the 'Cached Preview' Error in After Effects
To do this navigate to Edit>Purge>All Memory. This will reset your RAM cache from scratch.
Read more >
Cache problem with Scene Layer in AGOL - Esri Community
Hi, I have published a Scene Layer to AGOL with Pro 2.7. The scene layer is a multipatch layer of buildings. The buildings...
Read more >
Cached Playback | Maya 2022 - Autodesk Knowledge Network
Now, your scene is automatically cached as you work and Maya only ... Caching Modes: Because Cached Playback stores your animation in memory ......
Read more >
Caching is not what you think it is | by Davide Mauri - Medium
Evicting stale data from cache is quite easy, since object ... works behind the scenes that automatically refresh cached data when needed?
Read more >
How caching works—ArcGIS Pro | Documentation
This cache is refreshed when changes are made to a map, layer properties, or the data therein, such as when the features in...
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