Hello,
I wanted to use Replicator so that it either updates colours of all my prims individually (i.e. assigns a different colour to each prim) or have them all assigned to the same colour. I populated list of prims using rep.get.prim_at_path and then, I update inputs:paths attribute with the paths. However, I noticed that as soon as I pass “/Replicator” as the path (to update all prims to the same colour), Replicator maintains this setting despite me updating intputs:paths attribute of my prim_at_path node.
I have uploaded an example Python code to illustrate the problem. What happens, in the first 10 frames each object has different colour assigned as expected. Then, for another 10 frames, they all receive the same colour. I would then expect the process to be repeated, i.e. each object to have colour assigned separately, but it is not the case. Colours of all prims is updated to the same value, despite changes to inputs:path attribute (see printed output of get_attribute(“inputs:paths”).get() )
I would very much appreciate if someone could advise me on how to solve this problem. I would prefer to modify prims’ properties in a single simulation rather than restarting Replicator each time with new settings. Furthermore, I’d prefer not to change the layer as I’d need to re-load all assets which may be a bit time-consuming.
Many thanks,
Mateusz
edit: I forgot to mention that I’ve also tried creating two separate prim_at_path nodes for individual objects and for whole stage, and control the execution via omni.graph.action.Branch, but similarly, updating “inputs:condition” attribute didn’t seem to impact the execution paths. I also noticed that by default those multiple prim_at_path nodes were connected to each other, so I used connect and disconnect methods to wire all nodes.
test.py (2.3 KB)