Sequencer Python API

Hello,

Is it possible to change sequencer parameter such as Scene End (see below) via python API?

Best,
Yohan

Hi @yohan.legars - Please refer to the sequencer document. Sequencer — Omniverse Create documentation

Please correct me if I am wrong but I am not sure if I can take anything from the link you gave me. It seems to be a GUI documentation.

Is there a isaac sim command that would look like this: omni.kit.commands.execute(‘sequencer’, ‘end_scene’ : 1000)?

best,
Yohan

the Sequencer start and end time codes are governed by the stage start and end time codes. Here’s a snippet to change it through Python:

from pxr import Usd, UsdGeom
import omni.usd

stage = omni.usd.get_context().get_stage()
stage.SetEndTimeCode(300)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.