Skip to content

Latest commit

 

History

History

set_kind

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Quick Reference

C++

auto sphere = pxr::UsdGeomSphere::Define(stage, pxr::SdfPath("/SomeSphere"));
pxr::UsdModelAPI(sphere).SetKind(pxr::KindTokens->assembly);
pxr::UsdModelAPI(sphere).SetKind(pxr::KindTokens->component);
pxr::UsdModelAPI(sphere).SetKind(pxr::KindTokens->group);
pxr::UsdModelAPI(sphere).SetKind(pxr::KindTokens->subcomponent);
pxr::UsdModelAPI(sphere).SetKind(pxr::TfToken("does_not_exist"));

Python

sphere = UsdGeom.Sphere.Define(stage, "/SomeSphere")
Usd.ModelAPI(sphere).SetKind(Kind.Tokens.assembly)
Usd.ModelAPI(sphere).SetKind(Kind.Tokens.component)
Usd.ModelAPI(sphere).SetKind(Kind.Tokens.group)
Usd.ModelAPI(sphere).SetKind(Kind.Tokens.subcomponent)
Usd.ModelAPI(sphere).SetKind("does_not_exist")

USD

#usda 1.0
(
    doc = "This is an example of setting a Model Prim kind"
)

def Sphere "Sphere1" (
    kind = "assembly"
) {
}

def Sphere "Sphere2" (
    kind = "component"
) {
}

def Sphere "Sphere3" (
    kind = "group"
) {
}

def Sphere "Sphere4" (
    kind = "subcomponent"
) {
}

See Also

Valid Model Hierarchies

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

https://graphics.pixar.com/usd/docs/api/class_kind_registry.html