Omniverse Order-of-Events Model

Hi,
I am having trouble figuring out when I am supposed to do things in OV. For example “on_startup” is where you are supposed to initialize your Extension UI, but “omni.usd.get_context().get_stage()” returns “None” at that point, so I can’t do any initialization where I need information from my stage.

In general I see nothing equivalent to (for example) Unity’s “Order-of-Execution for Event Function”. Have I just not been able to find a page with that, or is there really nothing out there like that?

1 Like

Hi @mwise1. For your specific case, we would typically register a callback for stage open events and then execute the dependent code in the callback: Omni.USD — omni.kit.usd_docs 1.1.1 documentation

I agree that some documentation around app startup event execution order would be helpful. I’ll bring that up with the dev team.

1 Like

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