Set viewport fullscreen and show extension UI

Its not possible to both hide the UI and show it at the same time. However as an alternative you can hide all of the windows, and just unhide the specific ones you needed.

windows = omni.ui.Workspace.get_windows()
for window in windows: 
    if window =="Viewport" or window == "Script Editor":
        omni.ui.Workspace.show_window(str(window), True)
    else:
        omni.ui.Workspace.show_window(str(window), False)
1 Like