Hi Gorka
Another way is to use the color ramp control which can be used to return a number to represent the color selected..
To do this:
1 - On the pull down menu turn off intrapolation.
2 - Change the numerical representation to U8.
3 - Set maximum value of the control to the maximum numbers of colors you want.
4 - Create an attribute node and change it to 'Color Array'.
5 - The Color Array attribute requires an array of clusters. The cluster contains a DBL, which is the numeric you want colored, and an integer, which is the
color you want for the numeric. You can make this array contain all the values you want to have seperate colors. To represent the color you want you can use
the color constant.
Tim
Gorka Larrea wrote:
> Is there any way t
o limit the color options of a color box?
> If this is possible, how can I for example limit the color
> selection to eight different colors selected by me?
>
> * Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful