defineScope#
Fully qualified name: usdex::core::defineScope
- pxr::UsdGeomScope usdex::core::defineScope(
- pxr::UsdStagePtr stage,
- const pxr::SdfPath &path,
Defines a scope on the stage.
A scope is a simple grouping primitive that is useful for organizing prims in a scene. Scopes are not Xformable, so they are appropriate for organizing prims beneath a placeable root, not for the default prim of a placeable asset (use
defineXformfor that).- Parameters:
stage – The stage on which to define the scope
path – The absolute prim path at which to define the scope
- Returns:
UsdGeomScope schema wrapping the defined UsdPrim. Returns an invalid schema on error.