System Color Picker window

Apr 27, 2012 at 5:25pm

System Color Picker window

Hi there,

In one of my externals I would like to be able to open the system color picker, get the RGBA color values and get notified when the colorpicker’s window closes. Could someone (probably from C74) be so kind to post the relevant code ?

Thanks a million.

- Luigi

#63259
May 1, 2012 at 6:46pm

Hi Luigi,

The only way we expose the color picker outside of the Max kernel is through the attribute setter. So… I’d recommend making your color an attribute.

best,
Tim

#228231
May 2, 2012 at 10:59am

Yes, I can make my color an attribute… but then is it possible to interact with the system color picker without going through the inspector? I am basically looking to implement what the [colorpicker] object does:

1) Open the system color picker by double-clicking on the object.
2) Select your color
3) When the color picker’s window is closed the object sends out a bang.

The reasoning behind it is that I am working on a large UI external that manages many graphic objects.
Being able to directly click on each object and edit its color would be really cool.

It is possible to use the aforementioned approach?

- Luigi

#228232

You must be logged in to reply to this topic.