I found this code to get a list of all objects on the stage.
# Get the stage
stage = omni.usd.get_context().get_stage()
default_prim = UsdGeom.Xform.Define(stage, Sdf.Path("/World"))
stage.SetDefaultPrim(default_prim.GetPrim())
# find the prims with of type UsdGeom.Mesh
prims: List[Usd.Prim] = find_prims_by_type(stage, UsdGeom.Mesh)
prim: Usd.Prim
for prim in prims:
if prim.GetTypeName() == "Mesh":
label.text = prim.name
I tried Name with lowercase and uppercase. In my test scene I only have 1 cube.