Hallo Dan,
here is the expression for the opacity of the layers.
sampleSize = [10,10];
target = thisComp.layer("noise Comp");
samplePos = transform.position;
rgb = target.sampleImage(samplePos, sampleSize, true, time);
hsl = rgbToHsl(rgb);
hsl[2]*100