motion graphics eXchange

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

Views: 17760
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:

Folding Template

Thumbnail for: Folding Template
folding and unfolding template free to use.
Require After Effects CS6
After Effects CS6
Projects (aep)

Views: 53650
posted by fsimoni on Nov 05, 2012

Product, Service or App Promotion

Thumbnail for: Product, Service or App Promotion
After Effects Template. Promote your app, product or service
After Effects CS5
Useful things
Projects (aep)

Views: 29257
posted by RedSpikeFx on Oct 30, 2012

Clean Logo V2

Thumbnail for: Clean Logo V2
After Effects CS4,CS5,CS5.5 and CS6 template logo reveal
After Effects CS4
Projects (aep)

Views: 34774
posted by aedaddy on Aug 19, 2012



follow us on in touch on facebook