Distribution.uniform can not work in my replicator

Hello, I’m having a problem with my code and I hope someone can help me.

def get_shapes():
shapes = rep.get.prims(semantics=[(‘class’, ‘A’)])
with shapes:
position=rep.distribution.uniform((-500, 0, -500),(500, 0, 500)),
rotation=rep.distribution.uniform((-0, -180, 0), (0, 180, 0))
return shapes.node

this is my code but for some reason the object only rotates and the position doesn’t change. I don’t understand why this doesn’t work. Does anyone have any idea? Thank you in advance.

looks like a bug
in 2023.1.1 can work

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.