-
Multiplane expression added manually does not work
I’m using this expression to create a multiplane expression on my comp:
camZoom = 2666.6667; distance = position[2] + camZoom; scale * (distance / camZoom);
When I add it using a script named PSDto3D that I found at motion graphics exchange the expression works fine, however when I revise it to
camZoom = thisComp.layer(“Camera 1”).transform.position[2]*-1;
distance = position[2] + camZoom;
scale * (distance / camZoom);which is basically the same, the objects are displaced also in x and y as soon as I start dragging them in z space. The scale works fine according to the expression but there multiplane effect is not achieved, everything moves in a very obvious way.
Can anybody tell me why the second variation doesn’t work?
Thanks.camZoom = 2666.6667; distance = position[2] + camZoom; scale * (distance / camZoom);camZoom = thisComp.layer("Camera 1").transform.position[2]*-1;
distance = position[2] + camZoom;
scale * (distance / camZoom);