-
Need help building an expression to drive Out of Focus plugin
I despise the way the AE camera depth of field looks, so I prefer using something like Frischluft Lenscare Out of Focus for depth of field effects. I’m looking for a way to use an expression to automatically drive the blur amount for the Out of Focus plugin based on an object’s distance from the camera.
I can figure out how to generate the distance from the camera, but the tricky part is giving the focus a sweet spot so that objects that are, say, 250 pixels away from the camera are in focus, but any further away or any closer to the camera, they start to get more and more out of focus.
Has anyone on the board done this before? If not, how could I drive the out of focus blur amount based on the object’s distance from the camera?