-
sample from left
I’m using the expression below on numerous layers’ opacity so that the value is driven by a ramp. Right now I think it is sampling the ramp from the layers anchor point. How can change this to reflect a position to the layers most left? (also all the layers are different sizes and shapes)
min = [0];
max = [100];
l = thisComp.layer(“Ramp”);
p = l.fromComp(toComp(anchorPoint));v = rgbToHsl(l.sampleImage(p))[2];
linear(v, 0, 1, min, max);