How to use scatter2d no_coll_prims parameter with prim created from rep.create.from_usd

Hello,

Apologies for your trouble. Seems like a bit of a bug we have when referencing nested assets.

Thankfully there is a workaround for you

Update your rep.get.prims to use the prim_types parameter:

desks = rep.get.prims(semantics=[('class', 'desk')], prim_types=['Mesh'])
# or
desks = rep.get.prims(path_match='Desk', prim_types=['Mesh'])

What is happening is get.prims is returning Xforms as well as meshes, and scatter expects a Mesh. By narrowing the scope of get.prims we can exclude the Xform prims from the get.

1 Like