Here’s a rough attempt, based on the info you’ve provided:
lightNumber = index;
range = 30;
center = 72 – (lightNumber – 1)*36
angle = thisComp.layer(“Null for Camera”).rotationY;
on = ease(angle,center + range,center,0,100);
off = ease(angle,center,center – range,100,0);
Math.min(on,off);
The first line is where you need to establish a relationship between the light number and it’s layer index. As written, it will work if Light 1 is Layer 1 (top of the layer stack). If not, you’ll have to do a different calculation. Since you didn’t specify, I set the range of turn on/turn off to be +/- 30 degrees. I simplified by using 36 degrees as the angle between lights.
Dan