HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
camera.h File Reference
+ Include dependency graph for camera.h:

Go to the source code of this file.

Functions

PXR_NAMESPACE_OPEN_SCOPE
USDAPPUTILS_API UsdGeomCamera 
UsdAppUtilsGetCameraAtPath (const UsdStagePtr &stage, const SdfPath &cameraPath)
 

Detailed Description

Collection of module-scoped utilities for applications that operate using USD cameras.

Definition in file camera.h.

Function Documentation

PXR_NAMESPACE_OPEN_SCOPE USDAPPUTILS_API UsdGeomCamera UsdAppUtilsGetCameraAtPath ( const UsdStagePtr &  stage,
const SdfPath cameraPath 
)

Gets the UsdGeomCamera matching cameraPath from the USD stage stage.

If cameraPath is an absolute path, this is equivalent to UsdGeomCamera::Get(). Otherwise, if cameraPath is a single-element path representing just the name of a camera prim, then stage will be searched looking for a UsdGeomCamera matching that name. The UsdGeomCamera schema for that prim will be returned if found, or an invalid UsdGeomCamera will be returned if not.

Note that if cameraPath is a multi-element path, a warning is issued and it is just made absolute using the absolute root path before searching. In the future, this could potentially be changed to use a suffix-based match.