defineCamera#
Fully qualified name: usdex::core::defineCamera
- 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
GfCamerais 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 theUsdGeomCamera.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.