omni.kit.viewport.utility Functions

Functions Summary:

capture_viewport_to_buffer

Capture the provided viewport and send it to a callback.

capture_viewport_to_file

Capture the provided viewport to a file.

create_drop_helper

disable_selection

Disable selection rect and possible the single click selection on a Viewport or ViewportWindow.

frame_viewport_prims

frame_viewport_selection

get_active_viewport

Return the active Viewport for a given UsdContext.

get_active_viewport_camera_path

Return a Sdf.Path to the camera used by the active Viewport for a specific UsdContext.

get_active_viewport_camera_string

Return a string path to the camera used by the active Viewport for a specific UsdContext.

get_ground_plane_info

For a given Viewport returns a tuple representing the ground plane.

get_num_viewports

get_viewport_from_window_name

Return the first Viewport that is held inside a specific Window name.

get_viewport_window_camera_path

Return a Sdf.Path to the camera used by the active Viewport in a named Window.

get_viewport_window_camera_string

Return a string path to the camera used by the active Viewport in a named Window.

post_viewport_message

toggle_global_visibility