Extension: omni.kit.viewport.actions-106.0.2

Documentation Generated: Sep 11, 2024

Usage Examples

Switch to Perspective Camera

import omni.kit.actions.core
action_registry = omni.kit.actions.core.get_action_registry()
action = action_registry.get_action("omni.kit.viewport.actions", "perspective_camera")
action.execute()

Toggle Camera Visibility

import omni.kit.actions.core
action_registry = omni.kit.actions.core.get_action_registry()
action = action_registry.get_action("omni.kit.viewport.actions", "toggle_camera_visibility")
action.execute()

Set Viewport Resolution to HD 1080P

import omni.kit.actions.core
action_registry = omni.kit.actions.core.get_action_registry()
action = action_registry.get_action("omni.kit.viewport.actions", "set_viewport_resolution")
action.execute((1920, 1080))

Toggle RTX render-mode between Realtime and Pathtracing

import omni.kit.actions.core
action_registry = omni.kit.actions.core.get_action_registry()
action = action_registry.get_action("omni.kit.viewport.actions", "toggle_rtx_rendermode")
action.execute()

Toggle HUD Memory Visibility

import omni.kit.actions.core
action_registry = omni.kit.actions.core.get_action_registry()
action = action_registry.get_action("omni.kit.viewport.actions", "toggle_hud_memory_visibility")
action.execute()