How can I maximize my app programmatically?

I’m building an app.

The app runs and I want it to maximize automatically.
I want the app itself to be maximized in size,
not in full screen mode (f11) or ui toggle visibility (f7).

I already looked for the omni.appwindow or carb.windowing packages, but couldn’t find an answer.

How can I maximize my app programmatically?

Also works the same if you do minimize_window()

import carb

app_window = omni.appwindow.get_default_app_window()
windowing_interface = carb.windowing.acquire_windowing_interface()

windowing_interface.maximize_window(app_window.get_window())
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.