[SOLVED] light color lerp interval?

What I want to do is to fade the light to nothing ( no attenuation/ transparent). I’m making a day/night cycle and the colour of the sky, cloud movement, night sky, sun movement are all in intervals/ sequences/ parallels. I also would like to change the colour of the sunlight with an interval, but it seems like a colorInterval needs a nodePath, not a light node, so I cant change the colour of the light or its transparency/attenuation with intervals?

A function interval may suit your needs.

http://www.panda3d.org/manual/index.php/Function_Intervals

Sorry, I meant a LerpFunctionInterval

http://www.panda3d.org/manual/index.php/Lerp_Intervals

Wow, I can’t believe I could miss that.
Thanks