Doing a grain simulation I wanted to sample random colors from a photo, and add that to my grains. I also wanted my grain clusters to remain the same color. This whole setup proved to be very simple to do in VEX. Using the colormap function you can feed in a file name and the UVW coordinate to sample from. All I needed to do was to give each cluster an unique attribute, and randomize a UV selection based on the ID.