-
‘For’ Loop and Try/Catch Block
I use the effect Layer Control. But When set ‘None’ results in an error. I used a ‘For’ loop to collect the three effect used; So I want to associate the Try / Catch Block to prevent these errors. I try this expression, but no work. Thanks.
// Variables
var t=thisComp.layer("Less");
var a=t.effect("Scale")("Layer").name;
var b=t.effect("Position")("Layer").name;
var c=t.effect("Side")("Layer").name;
var e=["a","b","c"];
// For Loop
for (var i=0; i<e.length; i++){
}
// Try/Catch Block
try{
i;
}catch(err){
i=0;
}