Problems with cached data in a scene with .add_updater [SCENE CACHING]
See original GitHub issueclass 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:
However, when I run it again, without any changes, I get this:
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:
- Created 3 years ago
- Comments:16 (16 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
yeey! Closing Transition #339 in favour of #339 ? I think there was a typo 😉