Skip to content

Latest commit

 

History

History

purposes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Quick Reference

C++

purpose = pxr::UsdGeomImageable(prim).CreatePurposeAttr();
purpose.Set(pxr::UsdGeomTokens->proxy);
purpose.Set(pxr::UsdGeomTokens->default_);
purpose.Set(pxr::UsdGeomTokens->render);
purpose.Set(pxr::UsdGeomTokens->guide);

Python

purpose = UsdGeom.Imageable(prim).CreatePurposeAttr()
purpose.Set(UsdGeom.Tokens.default_)
purpose.Set(UsdGeom.Tokens.guide)
purpose.Set(UsdGeom.Tokens.proxy)
purpose.Set(UsdGeom.Tokens.render)

USD

#usda 1.0

def Xform "Xform"
{
    def Cube "SomeGuide"
    {
        uniform token purpose = "guide"
    }

    def Sphere "SomeRender"
    {
        uniform token purpose = "render"
    }

    def Cone "SomeProxy"
    {
        uniform token purpose = "proxy"
    }

    def Cylinder "SomeDefault"
    {
        uniform token purpose = "default"
    }
}

See Also

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