Camera Dad

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #202608
    jfotter
    Participant

    I am trying to replicate a “Camera Dad” expression that I say one time created for the flame in After Effects. It’s an expression to calculate the scale of a 3D layer to fill the FOV based on it’s distance from Camera. So as you move the layer to or away from camera is calculates the exact scale. I can’t seem to remember where I saw this. Unfortunately I don’t have a flame at my access right now and I don’t remember enough about the math to make it work. Any suggestions would be great.

    Jason Fotter
    http://www.theoutfitvfx.com

    #217310
    Steve Muench
    Participant

    You can parent the 3d layer to the camera and then use the following expression for the scale property:
    temp=100*transform.position[2]/thisComp.layer(“Camera 1”).cameraOption.zoom;
    [temp, temp, temp]

    This requires that the layer is perpendicular to the camera though…

    #217309
    Johnny Fegan
    Participant

    This worked perfect…..

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Copy link
Powered by Social Snap