Stage = omni.usd.get_context().get_stage() NameError: name 'omni' is not defined

Hi,

I’m trying to run below python file;

but getting constant below error

Traceback (most recent call last):
File “/home/msb/.local/share/ov/pkg/isaac_sim-2023.1.1/standalone_examples/api/omni.isaac.jetbot/jetbot_move.py”, line 117, in
stage = omni.usd.get_context().get_stage()
NameError: name ‘omni’ is not defined

Could anyone please help?

Thanks

Hi @shoaib.babar

Try importing omni (import omni) after line 86

Thanks for your response.

The problem was solved, I used below code;

Thanks again,

Mohammad Shoaib

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