Hi,
I am developing an extension for OV View in Omniverse Create.
I have taken as reference the Extension omni.view.startup, and I am trying to modify the startup.py script.
In the function async_open_stage, I want to load the scene without payloads.
async def _async_open_stage(self, path_to_open):
# waiting the content window invisible
await omni.kit.app.get_app().next_update_async()
omni.kit.window.file.open_stage(path_to_open) # THIS LINE IS THE ONE I WANT TO MODIFY TO OPEN WITHOUT PAYLOADS
In the documentation I have found the following interesting information, but I am not able to make it work.
https://docs.omniverse.nvidia.com/py/kit/source/extensions/omni.kit.window.file/docs/index.html
open_stage(path, open_loadset=UsdContextInitialLoadSet.LOAD_ALL, open_options: Optional[omni.kit.window.file.scripts.app_ui.OpenOptionsDelegate] = None)
This Error Message may also help: â.py:1308> exception=AttributeError(ââStartupExtensionâ object has no attribute â_load_payload_checkboxâ")> "
When trying different solutions, I allways get the Error Message in Console: [Error] [omni.kit.window.file.scripts.file_window] Only one file task can be run at a time!
Any idea of how can I do this?
Thanks in advance.