Keyboard in CHOP to Colour Lover Palette Picker component

Hello!

I want to be able to switch between my favourites in the colour lovers palette picker comp, by pressing 1 2 3 4 5. I have looked everywhere, but couldn’t find any anformation on how should I do it.

Cheers
Vince

Hi @stavangerle,

while the component itself does not seem to have a build-in function for this, you can control the UI with the Container COMP’s .clickChild() method.

The buttons that make the colors accessible are located in colour_lovers_picker_QuickFix/GUI and using the above mentioned method, you can click on these buttons by supplying an integer as an argument:

# get the value from the Keyboard In DAT
keyValue = ...
# click the button in the ui
op('colour_lovers_picker_QuickFix/GUI').clickChild(keyValue)

Hope this helps a bit
cheers
Markus

1 Like

Hello @snaut!

Thank you for your answer, I will look into that:)

Cheers
Vince