Initial stage ready: event or notification?

When Kit launches, usd_context.get_stage() returns None until later on, when the stage is actually created.

Is there some event or a way to be notified when the initial stage is created?


Hi @jordio. You can do something like this:

import asyncio
import omni.usd

async def main():
    await omni.usd.get_context().next_stage_event_async()
    stage = omni.usd.get_context().get_stage()


I just tested it with kit.exe --exec, but it could work in an extension too.

Thanks - this works fine in an extension.

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