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

Method restore

manim/mobject/mobject.py:2124–2129  ·  view source on GitHub ↗

Restores the state that was previously saved with :meth:`~.Mobject.save_state`.

(self)

Source from the content-addressed store, hash-verified

2122 return self
2123
2124 def restore(self) -> Self:
2125 """Restores the state that was previously saved with :meth:`~.Mobject.save_state`."""
2126 if not hasattr(self, "saved_state") or self.save_state is None:
2127 raise Exception("Trying to restore without having saved")
2128 self.become(self.saved_state)
2129 return self
2130
2131 def reduce_across_dimension(self, reduce_func: Callable, dim: int):
2132 """Find the min or max value from a dimension across all points in this and submobjects."""

Callers 4

shiftMethod · 0.45
get_mobject_keyMethod · 0.45
clean_up_from_sceneMethod · 0.45
interpolate_mobjectMethod · 0.45

Calls 1

becomeMethod · 0.95

Tested by

no test coverage detected