omni::connect::core::defineXform

Defined in omni/connect/core/XformAlgo.h

pxr::UsdGeomXform omni::connect::core::defineXform(pxr::UsdStagePtr stage, const pxr::SdfPath &path, carb::cpp::optional<const pxr::GfTransform> transform = carb::cpp::nullopt)

Defines an xform on the stage.

Parameters
  • stage – The stage on which to define the xform

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

  • transform – Optional local transform to set

Returns

UsdGeomXform schema wrapping the defined UsdPrim. Returns an invalid schema on error.