Hello!
It seems that when I create multiple prim and proxy prim pairs, then each time I project material onto the prim, it creates duplicates of the prims, that already have been used for projecting.
Consider the following:
import omni.replicator.core as rep
with rep.new_layer("test"):
toruses = []
for idx in range(3):
torus = rep.create.torus(
position=(idx * 200, 0, 0), semantics=[("class", f"torus{idx}")], name=f"great_torus{idx}"
)
toruses.append(torus)
for idx, torus in enumerate(toruses):
cube = rep.create.cube(visible=False, semantics=[("class", f"cube{idx}")])
with torus:
rep.create.projection_material(cube, [("class", f"projectmat{idx}")])
Projecting onto great_torus1 is fine. Projecting onto great_torus2 duplicates great_torus1 under great_torus2. And projecting onto great_torus3 duplicates great_torus1 and great_torus2.
Perhaps I’m doing something wrong but this seems like a bug. Thanks!