Dynamically hiding and showing elements, and SetWidgetFillColor

Hi friends,

In my most recent post I mentioned I’m working on a rackspace for Neural DSP’s Archetype Misha Mansoor X plugin based on the aesthetic design of @Ipkz and the code of @schamass for Archetype Gojira X. I’ve got most of it done, but there are a few finishing touches I’m really struggling with.

  1. Glitch sync
    1. I’m trying to figure out a way to control how the glitch pedal is synced. My plan was to have two toggle switches, one centered and the other symmetric with the tempo knob about the centerline of the bounding box, named glitchSync1, glitchSync2, and glitchInternalTempo, respectively. When the user wants the glitch to be synced to the tempo of the DAW (Gig Performer, in this case), glitchSync1 should be down and glitchSync2 and glitchInternalTempo should be hidden. When the user wants to manually control the tempo of the glitch pedal, they can flip the currently-visible glitchSync1 switch and it will be hidden; in its place will appear glitchSync2 and glitchInternalTempo. I’ve kind of got it working, which genuinely made me laugh because it’s so stupid but so clever, but the issue is that you have to flip each switch twice (after the initial flip of the glitchSync1) because there’s no way to detect a “flipped down” state. The execution of that part of the script is just eluding me and I was wondering if I could get some help on it.
  2. SetWidgetFillColor
    1. The other thing I’m struggling with is getting some colors for the different amps and cabs. The current colors are all set up for Gorjia X. I came across this post but honestly, I don’t really want to put a huge block of code in the script if I don’t have to just to get a few colors. However, making a test widget called myWidget and running Print(GetLabelColor(myWidget)) in an initialization block only returns -1 in the log window, so I’m not sure what’s going wrong there. Is there an easier way/way that works to get some colors? Or can someone perhaps demystify what these integers that SetWidgetFillColor takes are?

Yes, I’m aware that I haven’t done any of the automation for the tape echo yet. I’ve already been working on this all afternoon and only just realized it. What a soul crushing moment it was when I thought I was just about done. Oh well. Good thing I find this fun! :joy:

The rackspace file is attached for perhaps easier understanding of what I’ve done so far and what I’m trying to do.

NDSP - Misha Mansoor X.rackspace (3.3 MB)