-
After Effects warning: Bad argument: effect() index out of range, expression disabled.
Hello, I am trying to follow a tutorial in which I am applying the Echospace effect. The problem lies when I try to copy the color from a layer and paste it on the repeated layers. I am not completely sure what the “index-1” does, but I have tried replacing it with “1” which only copies the color from the first point I made on the other layer. I have also tried index+1, which somewhat works. I mean I get the same error, but not on all of the repeated layers. I would be fine with this if they wouldn’t change color to white when I tried to change their mode (from “Normal” to “Add”). Am I missing something out?
Thank You.
samplePoint = thisComp.layer(“Gradient”).effect(index-1)(“Point”);
sampleRadius = [10,10];
thisComp.layer(“Gradient”).sampleImage(samplePoint,sampleRadius);