HELP!!! - Expression Error - no add() expression, BUT add() needs exactly two arguments
Dear Swarm,
I am in urgent need of help. All of a sudden I get the following error message referring to line 1 in layers of a project wich was working absolutely fine before.
"Error: add() needs exactly two arguments"
Can anyone tell me what I can do to change the syntax so that the expression is working again? The Expression influences the position value of several layers and is actually quite simple. Please take a look:
VAR: r = thisComp.layer("Regler");
VAR: ozm = r.effect("Offset zur Mitte")("Slider");
VAR: ozm2s = r.effect("Offset zur Mitte 2 Spalten")("Slider");
VAR: ozm3s = r.effect("Offset zur Mitte 3 Spalten")("Slider");
VAR: ozm4s = r.effect("Offset zur Mitte 4 Spalten")("Slider");
VAR: azm = r.effect("Abstand zur Mitte")("Slider");
VAR: za = r.effect("Zeilenabstand")("Slider");
VAR: zza = r.effect("Zusätzlicher Zeilenabstand")("Slider");
VAR: la = r.effect("Logo Abstand")("Slider");
VAR: ozml = r.effect("Offset zur Mitte Logo")("Slider");
VAR: aa = r.effect("Absatz Abstand")("Slider");
VAR: yPos_1_Layer_up = thisComp.layer(index-1).position[1];
VAR: x = thisComp.width / 2 + ozm - ozm3s;
VAR: y = yPos_1_Layer_up;
[x,y]

