traversePrim#

Fully qualified name: isaacsim::foundation::usd::openusd::traversePrim

void isaacsim::foundation::usd::openusd::traversePrim(
int64_t stageId,
const std::string &path,
std::function<bool(const std::string&)> callback,
)#

Traverses the prim subtree rooted at path, invoking callback for each prim.

Parameters:
  • stageId – [in] Stage to operate on.

  • path – [in] Absolute SdfPath of the root prim to start traversal from.

  • callback – [in] Invoked with the SdfPath string of each visited prim. Return false to stop traversal early.