How do you set the current frame?

I know how to get the current frame

timeline = omni.timeline.get_timeline_interface()
current_frame = timeline.get_current_time() * timeline.get_time_codes_per_seconds()

How do I set the current frame?


Hi @DataJuggler. You can use set_current_time() to set the current frame. The docs for that method and others for the timeline interface can be found here: omni.timeline — kit-sdk 105.0.2 documentation

Thank you.