From eab97faf137f9cd72c43959e55de38c8efb492f7 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 18 Jan 2022 10:04:17 -0800 Subject: [PATCH] Allow for logging notes in wait calls, useful for presenter mode --- manimlib/scene/scene.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index 8951b509..bce7abfe 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -485,7 +485,9 @@ class Scene(object): self.unlock_mobject_data() @handle_play_like_call - def wait(self, duration=DEFAULT_WAIT_TIME, stop_condition=None): + def wait(self, duration=DEFAULT_WAIT_TIME, stop_condition=None, note=None): + if note: + log.info(note) self.update_mobjects(dt=0) # Any problems with this? self.lock_static_mobject_data() if self.presenter_mode and not self.skip_animations: