defineXform#
Fully qualified name: usdex::core::defineXform
- pxr::UsdGeomXform usdex::core::defineXform(
- pxr::UsdPrim prim,
- std::optional<const pxr::GfTransform> transform = std::nullopt,
Defines a basic xform from an existing prim.
This converts an existing prim to an Xform type, preserving any existing transform data.
- Parameters:
prim – The existing prim to convert to an xform
transform – Optional local transform to set
- Returns:
UsdGeomXform schema wrapping the converted UsdPrim.