pause_points¶
- class janim.timeline.pause_points.PausePoint(at: float, at_previous_frame: bool)¶
Bases:
object- at: float¶
- at_previous_frame: bool¶
- class janim.timeline.pause_points.PausePointsMixin(*args, **kwargs)¶
Bases:
TimelineCoreProvides the ability to mark pause points for
TimelineHint
All methods in this class can be used directly in
Timeline- pause_point(*, offset: float = 0, at_previous_frame: bool = True) None¶
Mark that in the preview interface, execution will pause when reaching the current time point
Tip
In the GUI interface, you can use
Ctrl+Left Arrowto quickly move to the previous pause point, andCtrl+Right Arrowto quickly move to the next oneIf the
Ctrlkey is not held, it will instead move between the previous and following animation ranges- Parameters:
offset – Represents how many seconds to offset, e.g.,
offset=2means 2 seconds after the current positionat_previous_frame – Controls whether to pause at the previous frame or the current frame. Defaults to
True, because in most cases when pausing, we want to display the last frame of the previous scene rather than the following frame (this is caused by JAnim animation intervals being left-closed and right-open)