Find a Prim by Name

If you want to find all of the prims of a certain type, you can Traverse the stage and use Usd.Prim.GetName() to compare the name of every prim on the stage with the name you are looking for.

Note

There could be more than one prim with the same name on a stage.

USD API

foundPrims = [x for x in stage.Traverse() if x.GetName() == myname]

Warning

This will be slow for stages with many prims, as stage traversal is currently single-threaded. Learn more about scene complexity.