-
Finding specific effect name in each layer
Hi forum,
i tried this code to loop each layer to find specific effect name, and i got effects() out of range, is there something did i missed?
for (i = 1; i <= thisComp.numLayers; i++){
var curFX = thisComp.layer(i).effect(1);
if(curFX.name == "somefx"){
thisComp.layer(i).index
break
}
}