Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions is there a focalLength property in AE?

  • is there a focalLength property in AE?

    Posted by Nick Hill on January 28, 2008 at 3:54 pm

    For various reasons it’d be useful to be able to determine the field of view of a given camera, which (I think) you can get with this formula –

    FoV = 2 * Math.atan(film_back / (2 * focal_length))

    where film_back is the filmback in mm (usually 36 in AE) and focal_length is 35mm, 50mm, etc. I can’t seem to find a focalLength property anywhere though – does it exist?

    Cheers

    Nick

    Nick Hill replied 18 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    January 28, 2008 at 6:14 pm

    The Zoom property can be used for this.

    I use this expression for horizontal fov:


    FoV = Math.atan((thisComp.width/2) / thisComp.activeCamera.cameraOption.zoom)*2;

    radiansToDegrees(FoV);

    use thisComp.height to get the vertical angle.

    A little known fact:
    the “zoom” of a camera is equal to the distance in Z-space a comp-sized 3d layer has to be from the cam in order to fill the screen.

  • Nick Hill

    January 28, 2008 at 6:21 pm

    that’s very very helpful. Thanks Filip! Didn’t know the zoom fact either, which will help too. 🙂

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