auto sphere = pxr::UsdGeomSphere::Define(stage, pxr::SdfPath {"/thing/SomethingElse/NestedEvenMore"});
auto prim = stage->DefinePrim(pxr::SdfPath("/thing/SomethingElse/SpecializedChild"));
prim.GetSpecializes().AddSpecialize(sphere.GetPath());
sphere = UsdGeom.Sphere.Define(stage, "/thing/SomethingElse/NestedEvenMore")
prim = stage.DefinePrim("/thing/SomethingElse/SpecializedChild")
prim.GetSpecializes().AddSpecialize(sphere.GetPath())
#usda 1.00
def "thing" {
def "SomethingElse" {
def "NestedEvenMore" {
}
}
def Sphere "SpecializedChild" (
specializes = [
</thing/SomethingElse/NestedEvenMore>
]
)
{
}
}
https://graphics.pixar.com/usd/docs/USD-Glossary.html#USDGlossary-Specializes