Camera Prims#

Utility functions to manipulate UsdGeomCamera and GfCamera data.

See UsdGeomCamera and GfCamera for details.

Functions#

pxr::UsdGeomCamera usdex::core::defineCamera(pxr::UsdPrim parent, const std::string &name, const pxr::GfCamera &cameraData)

Defines a basic 3d camera on the stage.

pxr::UsdGeomCamera usdex::core::defineCamera(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::GfCamera &cameraData)

Defines a basic 3d camera on the stage.

Functions#

pxr::UsdGeomCamera usdex::core::defineCamera(
pxr::UsdPrim parent,
const std::string &name,
const pxr::GfCamera &cameraData,
)#

Defines a basic 3d camera on the stage.

This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.

Parameters:
  • parent – Prim below which to define the camera

  • name – Name of the camera

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

Returns:

UsdGeomCamera schema wrapping the defined UsdPrim.

pxr::UsdGeomCamera usdex::core::defineCamera(
pxr::UsdStagePtr stage,
const pxr::SdfPath &path,
const pxr::GfCamera &cameraData,
)#

Defines a basic 3d camera on the stage.

Note that GfCamera is a simplified form of 3d camera data that does not account for time-sampled data, shutter window, stereo role, or exposure. If you need to author those properties, do so after defining the UsdGeomCamera.

An invalid UsdGeomCamera will be returned if camera attributes could not be authored successfully.

Parameters:
  • stage – The stage on which to define the camera

  • path – The absolute prim path at which to define the camera

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

Returns:

UsdGeomCamera schema wrapping the defined UsdPrim.