Notifications
Clear all
[Closed] Colorpicker question
Jul 26, 2007 4: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
2 Replies
Jul 26, 2007 4:44 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.
Jul 26, 2007 4:44 pm
Thanks, the doc wasn’t (for me) very explicit about this option, but it does the trick.