Skip to content

HierarchyModel: Add support for automatically populating parents when looking up path #17

@nrusch

Description

@nrusch

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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions