Out of Date After Effects Expression Undefined Value
Hello,
First time posting here, so apologies in advance.
I have imported a glitch effect .aep file which was created using an older version of After Effects. Not sure how to update it so that it works with the 2021 version.
Here's the expression:
x = thisComp.width/2 + thisComp.layer("Edit Settings").effect("Motion Controls")(2);
y = thisComp.height/2 + thisComp.layer("Edit Settings").effect("Motion Controls")(3);
defx = thisComp.width/2;
defy = thisComp.height/2;
m = thisComp.layer("Edit Settings").effect("Motion Controls")(1);
if (m==1) {[x, defy]};
if (m==2) {[defx, y]};
if (m==3) {[x,y]};
It's showing the following error:
Error : undefined value used in expression (could be an out of range array subscript?)
There may be other issues with the expression, but I only know the very basics unfortunately.
Any help woud be greatly appreciated.
Thanks.
