Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Apertute from distance

  • Apertute from distance

    Posted by Christian Buettner on September 30, 2008 at 7:49 pm

    Hey guys …

    thanks Dan for that great autofocus expression. What would I need to type in to link the aperture to object distance? let´s say the camera is quite far away from an object, so I would need to raise aperture levels to blur out the image. but when I track the camera closer, I need a lower value for aperture, so that I don´t blur my bg to hell.

    thanks a lot for all your help

    Christian

    Dan Ebberts replied 17 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 30, 2008 at 10:00 pm

    Seems like you cold tie aperture to focus distance with an expression like this:

    focusDist = cameraOption.focusDistance;
    minAp = 20; //minimum aperture
    maxAp = 200; //maximum aperture
    fMinAp = 1000; //focus distance for min aperture
    fMaxAp = 100; //focus distance for max aperture
    linear(focusDist,fMaxAp,fMinAp,maxAp,minAp)

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy