PDA

View Full Version : Colorpicker question


namoi
07-26-2007, 03:44 PM
Hi guys,

I'm a little confuse with the only event available with the colorpicker.
I explain : basically i'm using a colorpicker to change a color in a standard material. But, when the user change that color, the viewport is constantly updating itself to reflect the change, which is annoying and make the change of the color difficult. So i wanted to know if it's possible to catch the change only when the user press the OK button in the color selector.
Something like:

on mycolorpicker ENTERED new_col do...

Thanks

mustan9
07-26-2007, 05:05 PM
colorpicker theColor "Material Color:" color:[0,0,0] model:true

EDIT: The model parameter set to "true" will prevent the viewports from updating until the user clicks the OK button.

namoi
07-27-2007, 02:47 PM
Thanks, the doc wasn't (for me) very explicit about this option, but it does the trick.

CGTalk Moderation
07-27-2007, 02:47 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.