MCPcopy
hub / github.com/ManimCommunity/manim / add_mobjects_from_animations

Method add_mobjects_from_animations

manim/scene/scene.py:523–533  ·  view source on GitHub ↗
(self, animations: list[Animation])

Source from the content-addressed store, hash-verified

521 return self
522
523 def add_mobjects_from_animations(self, animations: list[Animation]) -> None:
524 curr_mobjects = self.get_mobject_family_members()
525 for animation in animations:
526 if animation.is_introducer():
527 continue
528 # Anything animated that's not already in the
529 # scene gets added to the scene
530 mob = animation.mobject
531 if mob is not None and mob not in curr_mobjects:
532 self.add(mob)
533 curr_mobjects += mob.get_family() # type: ignore[arg-type]
534
535 def remove(self, *mobjects: Mobject) -> Self:
536 """

Callers 2

wrapperFunction · 0.80

Calls 4

addMethod · 0.95
is_introducerMethod · 0.80
get_familyMethod · 0.45

Tested by

no test coverage detected