You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the HierarchyModel does not provide a way to search for a prim path in the active stage. While there is a GetIndexForPath method, this only looks at the current state of the hierarchy cache, without populating it any further.
We have an internal need to be able to look up a path's index (if present) without knowing whether the path's parent already exists in the hierarchy cache, and I think it makes sense to add this to the model as a first-class feature. This can currently be done semi-manually by recursing through the path's prefixes and calling HierarchyModel.index() for each child row, but I would like to implement this on the HierarchyModel in a more efficient way (possibly doing the leg work in the C++ _HierarchyCache class).