defineCamera#

Fully qualified name: usdex::core::defineCamera

pxr::UsdGeomCamera usdex::core::defineCamera(
pxr::UsdPrim prim,
const pxr::GfCamera &cameraData,
)#

Defines a basic 3d camera from an existing prim.

This converts an existing prim to a Camera type, preserving any existing transform data.

Parameters:
  • prim – The existing prim to convert to a camera

  • cameraData – The camera data to set, including the world space transform matrix

Returns:

UsdGeomCamera schema wrapping the converted UsdPrim.