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: TimelineCore

Provides the ability to mark pause points for Timeline

Hint

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 Arrow to quickly move to the previous pause point, and Ctrl+Right Arrow to quickly move to the next one

If the Ctrl key 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=2 means 2 seconds after the current position

  • at_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)