-
Camera+depth of field
Hi everybody.
I have a question on using expressions for depth of field and camera.I often use the expression “length” in order to link the depth of field to the position of the camera and the position of the object I want to be on focus.
As for example>
length (thisComp.layer(“Layer Name”).transform.position, transform.position)
where the first transform.position is referred to the layer I want to be on focus and the second to camera position.
What I-d like to know is if it-s possibile to change the focus on a different layer through expression in order to have a change of focus,
Let-s say you have a layer on focus in the front and you want to change the focus on a layer on the back, so that the one in the front will be then out of focus.
And besides I-d like to know if there-s a way to set the velocity of this change in focus.Hope I am clear enough 🙂
Thank you.
Paolo