I am creating an extension that uses autoload to open usd files after USD composer has completed its initial run.
def on_startup(self, ext_id):
asyncio.ensure_future(self.open_stage())
async def open_stage(self):
result, error = await omni.usd.get_context().open_stage_async("my_usd_file_path", load_set=omni.usd.UsdContextInitialLoadSet.LOAD_NONE)
I tried this too.
def on_startup(self, ext_id):
omni.usd.get_context().open_stage("my_usd_file_path", load_set=omni.usd.UsdContextInitialLoadSet.LOAD_NONE)
But nothing worked and when USD composer is turned on I see the new stage.
Is there a solution?