Blender 2.79, Cycles, Animation Node add-on
I'm trying to set up a node group to let me create stacks of books that will use the same UV mapped Image Texture, where I've randomized the X & Y on Location, Rotation, and Scale. That part works beautifully. Now I'm trying to give each book in the stack a random pick between 5 colors. Here is my AN set up:
Here is the Material set up for the cover (the text block uses two other images that I don't want to change the colors for):
Unfortunately, instead of changing the color of each book selecting between positions 0 to 4, it's mixing the colors of Pos 1 and 2 together.
I've tried adding in CMO nodes for the X and Y locations but there was no change. The only tutorials I've been able to find on how to change colors require timing or location changes. I want the book colors to remain static so that I can be flexible on where I position each stack (and how tall the stack is) in the environment. I'll be creating multiple copies of the nodes so that each stack will vary.
Clearly I'm missing something, but since I'm still brand new to AN I have no idea what and there aren't that many tutorials out there that I can read/watch to help me through this. Any and all suggestions are welcome!