Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 422 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 422 Bytes

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