Play/Pause Button Status

Is there any way to know the status of Play/Pause button through Python script?

@AbhishekNajan i believe with .is_playing(), it should return a bool showing whether the play button is active or not:

from omni.timeline import get_timeline_interface

timeline = get_timeline_interface()
print (timeline.is_playing())

here’s the omni.timeline API just in case it comes in handy in the future -

https://docs.omniverse.nvidia.com/kit/docs/kit-sdk/latest/source/extensions/omni.timeline/docs/index.html#

1 Like

@Simplychenable It works for me. Thank you for your response.

1 Like

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