usd_addprim(0, "/test", "Xform)
..but no prim gets added to the stage. It looks like the wrangle doesn't have the equivalent of a “Details” run mode like the SOPs wrangle, ie it needs input prims to iterate on.
usd_addprim(0, "/test", "Xform)
usd_attrib(<stage>, s@primpath, "someProperty")
packed = [prim for prim in geo.prims() if prim.type() == hou.PackedGeometry]
packed = [prim for prim in geo.iterPrims() if type(prim) == hou.PackedGeometry]
paths = geo.primStringAttribValues("path") indices = [str(paths.index(i)) for i in paths if i] packed = geo.globPrims(" ".join(indices))