Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added change_all_student_modes method to TeacherStudentsScene

Grant Sanderson4a47d2bca623
diff --git a/topics/characters.py b/topics/characters.py
index f21d96755..4bf717e58 100644
--- a/topics/characters.py
+++ b/topics/characters.py
@@ -666,6 +666,9 @@ class TeacherStudentsScene(PiCreatureScene):
student = self.get_students()[kwargs.get("student_index", 1)]
return self.pi_creature_thinks(student, *content, **kwargs)
+ def change_all_student_modes(self, mode, **kwargs):
+ self.change_student_modes(*[mode]*len(self.students))
+
def change_student_modes(self, *modes, **kwargs):
added_anims = kwargs.pop("added_anims", [])
self.play(