Skip to content

Instantly share code, notes, and snippets.

@spatial-bit
Created January 13, 2022 19:26
Show Gist options
  • Save spatial-bit/7aed9c4ed9567cd3d1861cfbe11921e9 to your computer and use it in GitHub Desktop.
Save spatial-bit/7aed9c4ed9567cd3d1861cfbe11921e9 to your computer and use it in GitHub Desktop.
USD set viewport #USD #OMNIVERSE
# 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