View Single Post
Old 10-19-2019, 02:32 PM   #395
Human being with feelings
Lokasenna's Avatar
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551

More of a SWELL issue I guess, but the color picker opened by reaper.GR_SelectColor() opens with all of the parameters at 0, meaning the entire palette is black until I manually increase the lightness/value:

An HSV of 0 0 255 would make more sense, no?

Edit: If I open a color picker from something like SWS Auto-Color, it's able to open with the previously-selected color. Is that possible in a script?

Edit the Second: Apparently it is, just not mentioned in the Lua API docs:
reaper.GR_SelectColor(nil, reaper.ColorToNative(255, 0, 0)) sets the color picker to red.

Last edited by Lokasenna; 10-27-2019 at 03:17 PM.
Lokasenna is offline   Reply With Quote