-
Repeating color pattern on objects
I have a row of 500 small cubes. They need to have a repeating color pattern, and this pattern may change for different purposes. So I am looking for an efficient way to apply the different colored materials to these cubes. For instance, suppose the repeating pattern is red, green, blue, yellow, blue, yellow, red, red, green, yellow, and blue. The color pattern then repeats again, starting with red, green, blue, yellow, etc. This needs to be a repeating color pattern over all the 500 cubes. Now I could apply the materials to the separate objects one-by-one, but that would take some time. And when the color pattern changes, I would have to do it all over again.
So, any suggestions on how to approach this?
Thanks in advance for your help.