Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 872 Bytes

README.md

File metadata and controls

41 lines (33 loc) · 872 Bytes

Quick Reference

C++

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());

Python

sphere = UsdGeom.Sphere.Define(stage, "/thing/SomethingElse/NestedEvenMore")
prim = stage.DefinePrim("/thing/SomethingElse/SpecializedChild")
prim.GetSpecializes().AddSpecialize(sphere.GetPath())

USD

#usda 1.0

def "thing"
{
    def "SomethingElse"
    {
        def Sphere "NestedEvenMore"
        {
        }

        def "SpecializedChild" (
            prepend specializes = </thing/SomethingElse/NestedEvenMore>
        )
        {
        }
    }
}

See Also

https://graphics.pixar.com/usd/docs/USD-Glossary.html#USDGlossary-Specializes