I have a custom component with a drawn element (small square) that moves horizontally depending on the value of a knob (named in lua – “sw1position”).
I would like the square to be “erased” or hidden if the value of a combobox (named in lua: “waveform”) changes.
Is there a way to name a drawLine (below) so that you can later set its visibility, or change its color? Here’s a snipit of what is being drawn on the customComponent and how it’s drawn, very basic:
sw1position = panel:getModulatorByName("Wave 1 Startwave"):getModulatorValue()
graphics:setColour (Colour(0xff55BBff))
graphics:drawLine ((sw1position*25)+3, 0, (sw1position*25)+3, 5, 5);
This works fine, I basically just want to then “hide” the 5×5 “drawLine” (actually a small, blue box) if my “waveform” combobox’s value changes. ..
Any other suggestions welcome.. I’m giving a few alt workaround a shot right now but being able to name a drawLine would be ideal in this situation so I could manipulate the drawLine depending on the value of various modulators.