How do I change camera view(perspective to right Eg) in code

How do I change camera property to chage the view mode from perspective to top for example directly from code.

Hi @icaroleles1. Here’s how you can switch to the orthographic cameras included in all stages:

from omni.kit.viewport.utility import get_active_viewport

vp_api = get_active_viewport()
# Orthographic camera options:
#     /OmniverseKit_Top
#     /OmniverseKit_Front
#     /OmniverseKit_Right
vp_api.camera_path = "/OmniverseKit_Top"
1 Like

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