-
How to call for a value before expression?
I’m trying to reposition a camera to start at z-position 0.
For example, I have a camera that has a position of [960,549,-8000].
I want to move the z-position to 0, so I add the following expression “position + [0,0,transform.position[2]*-1]”. I can’t call the actual value, becuse this expression will be a part of an autumated process and the camera position will be different for different projects. All this works perfectly, but I have some other obects that I want to move the same ammount. For example, I have a null at z-position 10, and would like to move that the same ammount as the camera (which would give me a value of 8010 in this example.
I tried with the following expression to the null: “position + [0,0,thisComp.layer(“Camera 1″).transform.position[2]]”, but that doesn’t work since the cameras z-position has been moved to 0 already. So I must call the cameras original z-position somehow. Is this possible?