(self, animations: list[Animation])
| 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 | """ |
no test coverage detected