Hello
I have an app based on omni.app.dev.kit from kit-105.1.2\apps that loads a scene (.usd) and runs a stream (webRTC) on startup.
Is it possible to set in .kit app so that the application hides all the GUI after starting, as happens when pressing F7
Ok here are the two commands for both F7, which is hide UI, and maximize viewport and F11 which is go fullscreen.
F7
action_registry = omni.kit.actions.core.get_action_registry()
toggle_ui = action_registry.get_action(“omni.kit.viewport.actions”, “toggle_ui”)
toggle_ui.execute()
F11
action_registry = omni.kit.actions.core.get_action_registry()
toggle_ui = action_registry.get_action(“omni.kit.viewport.actions”, “toggle_fullscreen”)
toggle_ui.execute()
This solution works.
But if I run the application with the --no-window parameter, I can’t check the resulting state of the application - hiding or showing the user interface. Is there a way to check the status of the application? (ShowGUI = false/true, fullscreen = false/true)
At the same time, I would like to disable the function of these keys (F7, F11) so that the user connecting to the WebRTC web server cannot use them. I found an option that doesn’t work for me:
[settings.exts.“omni.appwindow”]
listenF11 = false
listenF7 = false
I need to stream to the user only the rendered content of the Viewport in a defined resolution.
You can follow this thread to turn off Keyboard Shortcuts
Turn Off Keyboard Shortcuts - Omniverse / Isaac Sim - NVIDIA Developer Forums
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.