-
sampling expression crashing CS6
I’m using the expression below on a few layers to control their opacity. It used to work great but it seems to be crashing in CS6. Can anyone please help.
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);