UsdStage Hierarchy#

Utility functions to avoid common mistakes when manipulating the prim hierarchy of a UsdStage.

Functions#

bool usdex::core::isEditablePrimLocation(const pxr::UsdPrim &prim, const std::string &name, std::string *reason)

Validate that prim opinions could be authored for a child prim with the given name.

bool usdex::core::isEditablePrimLocation(const pxr::UsdStagePtr stage, const pxr::SdfPath &path, std::string *reason)

Validate that prim opinions could be authored at this path on the stage.

bool usdex::core::isEditablePrimLocation(const pxr::UsdPrim &prim, std::string *reason)

Validate that prim opinions could be authored for a prim.