-
AE Scripting : Removing a specific effect by matchName
Hey there!
I’m trying to write a code where I can erase a specific Pseudo Effect using matchNames,
I know I need to define :thisEffect
but how?
Here’s my trial :
{
var comp = app.project.activeItem;
var getEffects;
for (var i = 1; i <= comp.numLayers; i++){
getEffects= myComp.layer(i).Effects;
for (j = getEffects.numProperties; j > 0; j--){
if(thisEffect.matchName == "Pseudo/matchName") {
getEffects.property(j).remove();
}
}
}
}It says “thisEffect” is undefined.