Let's say I have a grid of small cubes 20 x 20. I want to be able to make some amount of them 'grow' over one axis.
The closest I had to this was use displacement with a cloud texture matched to an empty object that moves across the screen, but because it affects vertices instead of faces it doesn't look like cuboids anymore. Is there a way around this?

(to further complicate things I'd like to be able to then assign different materials to sides so would be much better if starting point is cubes rather than plane)








