omni::connect::core::defineCamera
Defined in omni/connect/core/CameraAlgo.h
-
pxr::UsdGeomCamera omni::connect::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 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.