Hello,
Isaac Sim Version: 2022.1.0
I am developing a standalone app and I created a viewport windows as follows
viewpoint_interface = omni.kit.viewport_legacy.get_viewport_interface()
viewport_instance = viewpoint_interface.create_instance()
viewport_window = viewpoint_interface.get_viewport_window(viewport_instance)
I would like to close the viewport window (it should disappear in the Isaac Sim GUI) within the Python script. May I know the correct way to close it gracefully while the app is still running?
Things I tried:
del viewport_instance (no effect)
del viewport_window (no effect)
omni.kit.viewport_legacy.get_viewport_interface().destroy_instance(viewport_instance)
→ This throws the error [carb.events.python] AttributeError: ‘dict’ object has no attribute ‘remove’
.local/share/ov/pkg/isaac_sim-2022.1.0/kit/extscore/omni.syntheticdata/omni/syntheticdata/scripts/viewport_legacy.py(65): _on_update
within the ViewportLegacy class
I also tried to import the ViewportLegacy in the file above and try to use the close close_viewports but I could not find the correct way to import it
Any help would be appreciated thanks!