findMatchingPrimPaths#
Fully qualified name: isaacsim::foundation::utils::findMatchingPrimPaths
- std::vector<std::string> isaacsim::foundation::utils::findMatchingPrimPaths(
- const std::string &path,
- bool traverse = false,
Returns all prim paths on the default stage that match the given path expression.
- Parameters:
path – [in] Literal USD path or regex pattern to match against prims on the default stage.
traverse – [in] For a literal path: when
true, also returns all descendants of the matched prim; whenfalse, returns only that prim. For a pattern: whenfalse, each'/'-separatedsegment is matched as a regex level by level; whentrue, the whole pattern is tested as a single regex against every prim path on the stage.
- Returns:
Ordered list of matching prim path strings.