-
effect()index out of range, expression disabled!!!!!!!!!
Hello, I’m trying to use an expression to copy the color from a layer and represent it to another. I’ve tried replacing “index-1” with “1” and it works, but I’m using a gradient as the parent layer, and the colors won’t switch, it remains the same color. What should I do?
Thanks!
samplePoint = thisComp.layer("Gradient").effect(index-1)("Point");
sampleRadius = [10,10];
thisComp.layer("Gradient").sampleImage(samplePoint,sampleRadius);