NVIDIA / warp

A Python framework for high performance GPU simulation and graphics
https://nvidia.github.io/warp/
Other
4.3k stars 246 forks source link

[QUESTION] Cannot import 'omni' #261

Closed biansy000 closed 4 months ago

biansy000 commented 4 months ago

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'
christophercrouzet commented 4 months ago

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.