esc
Start typing to search the docs
Navigate Open

Control the Viewer time cursor from Python

Control the Viewer time cursor from Python

The experimental Python ViewerClient can now seek the Viewer's active recording to a sequence, duration, or timestamp and optionally start playback. Connect to a running Viewer, then specify a timeline or omit it to use the active timeline:

from rerun.experimental import ViewerClient

viewer = ViewerClient.connect()
viewer.set_time("frame", sequence=42)
viewer.set_time(duration=1.5, play=True)