configureStage#
Fully qualified name: usdex::core::configureStage
- bool usdex::core::configureStage(
- pxr::UsdStagePtr stage,
- const std::string &defaultPrimName,
- const pxr::TfToken &upAxis,
- const double linearUnits,
- std::optional<std::string_view> authoringMetadata = std::nullopt,
Configure a stage so that the defining metadata is explicitly authored.
This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.
- Parameters:
stage – The stage to be configured.
defaultPrimName – Name of the default root prim.
upAxis – The up axis for all the geometry contained in the stage.
linearUnits – The meters per unit for all linear measurements in the stage, eg.
UsdGeomLinearUnits::metersauthoringMetadata – The provenance information from the host application. See SdfLayer Authoring for details.
- Returns:
A bool indicating if the metadata was successfully authored.