Question:
I know it’s been 6 years since you posted, and would be surprised if you would actually answer. Yet I’m still trying.
I’m not good with expressions at all. How can I use this expression to control the exposure of a shot? I have some footage with a wearying light intensity and I want to match it in with another clip, but I dont want to hand track the intensity.
Can I somehow use this expression? I’ve tried a couple of times, but have a hard time understanding what the expression literally means.
Thanks
– Frederik B
sampleSize = [10,10];
target = thisComp.layer("layer 1");
samplePos = [target.width,target.height]/2;
rgb = target.sampleImage(samplePos, sampleSize, true, time);
hsl = rgbToHsl(rgb);
hsl[2]*100