motion graphics eXchange
top

Scale relative to distance from camera

No thumbnail available
This expression maintains the objects apparent size as it moves away from camera.
It's helpful for taking a flat layout and making a "multiplane" layout from it for animation.
After Effects 6
Camera
Expressions

Views: 3591
Permalink
share this  error? 
cam = this_comp.active_camera;
distance = length(sub(position , cam.position));
s = distance / cam.zoom;
mul(scale, s);

Or you can make the layer a child of the camera and use this simpler expression:

s = 100*(position[2]/parent.zoom);
[s, s, 100]

In this case, if you wanted to move the camera in relation to the multiplane layers, you'd simply create a new camera to animate.


(Min. Version: After Effects 6, Category: Camera, Type: Expressions)
posted by Dan Johansson on Sep 15, 2008

 

Related topics:

Lightwrap in After Effects

Thumbnail for: Lightwrap in After Effects
This brief tutorial covers the compositing technique of light wrapping.
After Effects CS4
Keying
Video-/Tutorials

Views: 453
Permalink
posted by jamie on Jan 13, 2012

Lightwrap Preset

Thumbnail for: Lightwrap Preset
This is a preset that you can use on green screen footage or just general compositing.
After Effects CS5
Keying
Presets (ffx)

Views: 340
Permalink
posted by jamie on Jan 13, 2012

3D Cube Creator

Thumbnail for: 3D Cube Creator
This script is used to create a 3d cube. You can later replace the different sides and spin the null around for easy animation.
After Effects CS3
3D
Scripts (jsx)

Views: 2412
Permalink
posted by MicGyver on Nov 11, 2011


 

 

follow us on http://twitter.com/mgxchangeget in touch on facebook

 

 

motion graphics eXchange - Get The Search Engine