Skip to content

Latest commit

 

History

History
 
 

stl_iteration2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Quick Reference

C++

Example: Using boost to do custom traverals

auto range = pxr::UsdPrimRange::Stage(stage);

for (auto const &prim : range | boost::adaptors::filtered([](pxr::UsdPrim const &prim) {
    return prim.GetPath().GetName() == "AnotherSphere";
})) {
    pxr::UsdModelAPI(prim).SetKind(pxr::KindTokens->component);
}

See Also

https://groups.google.com/forum/#!topic/usd-interest/J_tLjVaaePM