defineXform#

Fully qualified name: usdex::core::defineXform

pxr::UsdGeomXform usdex::core::defineXform(
pxr::UsdPrim prim,
const pxr::GfMatrix4d &matrix,
)#

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

  • matrix – The local transform matrix to set

Returns:

UsdGeomXform schema wrapping the converted UsdPrim.