You're most likely only running that code once so it will only happen on first execution. I see a couple of errors, first you're using a float field max value while calling on an intSlider. If you're okay with integers then it doesn't matter, MEL is forgiving when converting some datatypes. Secondly you need to add a…
Okay, next issue!!! Cubes using this plane vert placement mode don't seem to want to place properly when using the code from the simple move x rand version. The cubes are all being placed in the correct amount, but ontop of each other and the script is failing at moving each cube as it gets created. Heres my code.. Where…