Changing colors in Jitter nurbs?
I'm trying to change the colors of the nurb objects but without success. Here's the object I'm trying to change:
jit.gl.nurbs foo @order 4 4 @dim 20 20 @blend_enable 1 @lighting_enable 1 @color 0.2 0.1 0.3 0.9.
So, bascially, it's the last four set of digits after @color that I'd like to be able to change at certain intervals. If I could simply send a set of list numbers so I could preset the color change that would be great. I tried using the swatch object but I couldn't figure out how to send the numbers to just the @color values. I'm new to Max and Jitter so I'm guessing that these last few numbers are RGBA values?
If anyone could lend some advice that would be great.
Thanks!
you might be having trouble because when you change the color of an object but the alpha channel is anything less than 1. it often takes forever for it to redraw to the point of replicating a solid color.
I recommend you try the color first, then then transparency.
Send numbers to just the color values with a message "color $1 $2 $3 $4" or a pak object [pak color 0. 0. 0. 1.] with the first inlet left empty and floats connected to the rest.
thanks a lot for the idea. I'll give it a try and let you know if it works.