Xform Prims#

Utility functions to create UsdGeomXform prims.

See UsdGeomXform for details.

Functions#

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdStagePtr stage, const pxr::SdfPath &path, std::optional< const pxr::GfTransform > transform=std::nullopt)

Defines an xform on the stage.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdPrim prim, std::optional< const pxr::GfTransform > transform=std::nullopt)

Defines a basic xform from an existing prim.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdPrim parent, const std::string &name, std::optional< const pxr::GfTransform > transform=std::nullopt)

Defines an xform on the stage.

Functions#

pxr::UsdGeomXform usdex::core::defineXform(
pxr::UsdStagePtr stage,
const pxr::SdfPath &path,
std::optional<const pxr::GfTransform> transform = std::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.

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 – The transform to set on the xform

Returns:

UsdGeomXform schema wrapping the converted UsdPrim.

pxr::UsdGeomXform usdex::core::defineXform(
pxr::UsdPrim parent,
const std::string &name,
std::optional<const pxr::GfTransform> transform = std::nullopt,
)#

Defines an xform on the stage.

Parameters:
  • parent – Prim below which to define the xform

  • name – Name of the xform

  • transform – Optional local transform to set

Returns:

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