warp icon indicating copy to clipboard operation
warp copied to clipboard

[QUESTION] Cannot import 'omni'

Open biansy000 opened this issue 1 year ago • 1 comments

I want to write a clothes simulation program following exts/omni.warp/omni/warp/nodes/_impl/OgnClothSimulate.py. However, I cannot import omni in the code.

ModuleNotFoundError: No module named 'omni'

biansy000 avatar Jul 11 '24 08:07 biansy000

Hi @biansy000, are you running import omni from within an Omniverse application? The exts folder is dedicated to extensions for the Omniverse platform, so it won't run in a standalone Python environment. You can check warp/examples/sim/example_cloth.py for the latter.

christophercrouzet avatar Jul 11 '24 19:07 christophercrouzet