Import my .usd file using a command line in a script


I upgraded IsaacSim from 2021.2.1 to 2022.1, and I am trying to import my .usd file using a command line in a script.

I used the command line as below.

from omni.isaac.core.utils.nucleus import find_nucleus_server
       self._nucleus_path =  find_nucleus_server()
        asset_path = self._nucleus_path + usd_path

but it doesn’t work (Warning says it is depreciated)

I want to use .usd file from /localhost/Project folder.

How can I access this root by command lines ?

Thank you.

from omni.isaac.core.utils.nucleus import get_assets_root_path
assets_root_path = get_assets_root_path()
asset_path = assets_root_path + usd_path

There are also functions to get the path to /Isaac or /Nvidia


And additional utilities in omni.isaac.core.utils.nucleus for finding servers and asset paths

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