Created
January 13, 2022 19:26
-
-
Save spatial-bit/7aed9c4ed9567cd3d1861cfbe11921e9 to your computer and use it in GitHub Desktop.
USD set viewport #USD #OMNIVERSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import omni.kit.app as _app | |
# import omni.usd as _usd | |
# import omni.client | |
# import omni.renderer_capture | |
# import omni.timeline | |
# from omni.kit import app | |
# USD setting viewport | |
width = 640 | |
height = 480 | |
vpi = omni.kit.viewport.get_viewport_interface() | |
viewport = vpi.get_viewport_window() | |
viewport.set_texture_resolution(width, height) | |
print("Done!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment