get_active_viewport_camera_string#

omni.kit.viewport.utility.get_active_viewport_camera_string(usd_context_name: str = '') str#

Retrieves the camera path string for the active viewport within a specified USD context.

Parameters:

usd_context_name (str, optional) – The name of the USD context to query. If empty, the current USD context is used. Defaults to an empty string.

Returns:

The camera path string for the active viewport, or an empty string if no active viewport is found.

Return type:

str