Sbsar Extension in simulation script

Hey all! Similiar question to Sequencer Extension in sim script

I am trying to use sbsar extension with SimulationApp(). I should autoload that because that doesn’t work when enabling at runtime.

So I decided to add it to Config and load that while creating SimulationApp() like;

GEN_CONFIG = {

            "extensions": {

                "console": {
                    "filterLevel": -1,
                    "sources": {
                        "usd.fileformat.sbsar": True,
                    }
                }
            },
            "exts": {
                "enabled": [
                    "omni.kit.property.sbsar-0.8.0"
                ]
            },
    
        "renderer": out_config["rendertype"],
        # "renderer": "PathTracing",
        "headless": False,

    }

    from omni.isaac.kit import SimulationApp
    simulation_app = SimulationApp(GEN_CONFIG)

However this isn’t works too. How should I prepare the config to make that work ?

Thanks.

-Update-

I figured out how to enable SBSAR ext however I should enable usd.fileformat.sbsar extension too

    import omni.kit.app

    manager = omni.kit.app.get_app().get_extension_manager()
    manager.set_extension_enabled_immediate("omni.kit.property.sbsar-0.8.0", True)
    manager.set_extension_enabled_immediate("usd.fileformat.sbsar", True)

Throws:
Can't find extension with name: usd.fileformat.sbsar

That because its a non-toggleable extension normally. How can I solve that issue ?

Thanks!

1 Like

Hi @berkayeraydin

If you want the extension to be enabled for standalone applications, you can edit the omni.isaac.sim.python.kit file (in <path_to_isaac_sim>/apps folder) and uncomment the related extensions in line 229

# SBSAR
"omni.kit.property.sbsar" = {}
"omni.usd.fileformat.sbsar" = {}

or run the script with the following arguments:

./python.sh script.py --enable omni.kit.property.sbsar --enable omni.usd.fileformat.sbsar
1 Like

Hi @berkayeraydin

The name of the second extension is omni.usd.fileformat.sbsar (at least in Isaac Sim 2022.2.0)

import omni.kit.app

manager = omni.kit.app.get_app().get_extension_manager()
manager.set_extension_enabled_immediate("omni.kit.property.sbsar", True)
manager.set_extension_enabled_immediate("omni.usd.fileformat.sbsar", True)
1 Like

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