get_viewport_window_camera_path#
- omni.kit.viewport.utility.get_viewport_window_camera_path(
- window_name: str = None,
Retrieves the camera path for the viewport in the specified window.
If the window name is not provided, the default viewport window is used.
- Parameters:
window_name (str, optional) – The name of the window from which to retrieve the camera path.
- Returns:
The SDF path to the camera used by the viewport, or None if the viewport is not found.
- Return type:
Sdf.Path