-
axis/expression problem
Hi guys
I have the following problem:
I have two layers in a comp. When I move layer1 in the x axis, layer2 should be moved in the y axis and should get the same y value as layer 1. I tried the following expression on the position property of layer2:
if (thisComp.layer(“layer1”).transform.position[0] == -102) {
transform.position[1] == thisComp.layer(“layer1”).transform.position[1];
}But this gets me an error message saying something like “Expression result must have dimension 2 not 1 (sorry, my AE is in german language).
Can anyone give me a tipp?
thanks
Cheers, Pascal