I figured it out for myself and this is what I used
target = thisComp.layer(“Audio_PC”);
rgb = target.sampleImage(transform.position, [5, .5], true, time);
hsl = rgbToHsl(rgb);
if (hsl[2] > 0) 100 else 0
I’m sure there is a way to skip the rgb to hsl conversion but I found that in another post and then just added the if else.
I’m happy
Now if some one could tell me how to ad a 10 frame fade out from 100% opacity (on) to off : )
Thank You