I’m working with a custom create extension, i’m trying to get the extension to load layers after loading an intital USD as a layer.
I have it working but i don’t think i’m going the right way about it. I’m using the LayerUtils file from the official Omniverse extension library, and currently i have to load one USD as a layer, then i have to load it again along with any other layers i want. Can anybody advise how to make this work with just loading the inittial layer once before adding the additional layers. The code is below:
So one concept need to be clarified: You should not use the following to get the stage you opened. This means it will create a new stage that shares the same masterPath with the stage you opened with omni.kit.window.file.open_stage().