Change LED widget color based on status

There is a way to simulate this using hidden Pad widgets, and GP Script to un-hide the appropriate widget based on your controller input.

Here’s an example:

In this example, I’ve set up 3 hidden widgets to receive the MIDI input from a controller, and three hidden Pad widgets–one for each color you mentioned, stacked on top of each other.

Var
   red : Widget
   green : Widget
   orange : Widget
   ron : Widget
   oron : Widget
   gon : Widget

   // Called when a single widget value has changed
On WidgetValueChanged(newValue : double) from ron
If newValue > 0.5 then SetWidgetHideOnPresentation(red, false)
SetWidgetHideOnPresentation(green, true)
SetWidgetHideOnPresentation(orange, true)
End
end

On WidgetValueChanged(newValue : double) from gon
If newValue > 0.5 then SetWidgetHideOnPresentation(green, false)
SetWidgetHideOnPresentation(red, true)
SetWidgetHideOnPresentation(orange, true)
End
end

On WidgetValueChanged(newValue : double) from oron
If newValue > 0.5 then SetWidgetHideOnPresentation(orange, false)
SetWidgetHideOnPresentation(red, true)
SetWidgetHideOnPresentation(green, true)
End
end
7 Likes