Beginner - Get world handle [Python]

I am opening a usd file with omni.usd.get_context().open_stage(usd_path, None) . How do I get the handle to the World object.

Sorry if it is a completely beginner’s question.

Thanks and regards,
Nilesh S

Hi there,

here are some snippets on creating and interacting with the world:

from omni.isaac.core import World

world = World()  # Creates the singleton world accessed both locally and by extensions.
world.reset()  # Start up the simulation environment.
world_singleton_instance = World.instance()
mesh_prim = world.stage.GetPrimAtPath("World/CubeExample")

Here you can find the World class documentation: Core [omni.isaac.core] — isaac_sim 2022.1.1-release.1 documentation


Thanks Andrei

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