i have a fence in a scene that is made of two difference prims in my stage. obviously, if i want to randomize the material of the fence, i need both objects to remain visually the same. the following code paints the two prims different colors from each other:
def randomize_fence_color(stage):
fence = rep.get.prims(semantics=[('class', 'fence')])
with fence:
rep.randomizer.color(colors=rep.distribution.choice([(0, 0, 0), (1, 1, 1)]))
return fence.node
how can i handle modifying multiple objects materials/colors and keeping them consistant?
