Beta memo: at this time the forums and insider use two different registration and login systems. We're working on unifying the process, so if you register with your same e-mail on the forums and insider we'll merge your accounts later. To access the forums please use the login below. -Thanks.
Results 1 to 3 of 3

Thread: Camera Dad

  1. #1
    Join Date
    May 2006
    Posts
    16

    Default Camera Dad

    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
    www.theoutfitvfx.com

  2. #2
    Join Date
    Nov 2008
    Posts
    2

    Default

    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...

  3. #3
    Join Date
    May 2006
    Posts
    16

    Default Thank You

    This worked perfect.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •