_resolveExpressionsToPrims#

Fully qualified name: usd_optimize::_resolveExpressionsToPrims

std::vector<PXR_NS::UsdPrim> usd_optimize::_resolveExpressionsToPrims(
const PXR_NS::UsdPrim &rootPrim,
const std::vector<std::string> &paths,
bool meshesOnly,
bool reverse,
const PXR_NS::Usd_PrimFlagsPredicate &predicate,
const ResolveFilter &filter,
)#

Resolve prim paths/expressions to UsdPrims.

Iterates a prim and its descendants. If paths is populated, then all children are filtered against the expressions. It can contain anything valid for an SdfPathExpression, so either absolute prim paths or an actual expression.

If paths is empty, then all prims are returned.

Parameters:
  • rootPrim – The prim from which to iterate

  • paths – A vector of prim paths or SdfPathExpression expressions

  • meshesOnly – Whether only meshes should be returned

  • reverse – Reverse the order of the result before returning

  • predicate – Predicate to filter stage traversal

  • filter – Optional callback for calling code to provide custom filtering

Returns:

Vector of prims