User change light color with slider

Hi, I’m trying to create a little scene where the user can slide a Hue slider on an interface and affect the Hue of several point lights in the scene.

I have a simple interface widget (UI_LightTest) with a slider named HueSlider.

The scene has a BP (BP_Lights) with several Point lights in, named Striplight01, Striplight02, etc.

I’ve added the attached script to the Player Controller BP, but I’m a little lost on the casting (which I’m guessing is the best way to get data between the various elements…)

What do I need as my Objects for the two casts? Or should I be doing it differently?

Any help much appreciated!

Thanks.

I seem to have got something that works, but it doesn’t look very efficient to me. Could any of this be improved?