Free - After Effects Expression - Proximity

$0+
7 ratings

Thought I'd share a fun experiment for anyone who wants to learn cool after effects expressions! 


Download the file to get all three animation shown above!


Everything in this animation is based on the position of a layer that I've named "Target". When I move the target layer, things scale up as it comes near.


I'll put the expression below for those of you who like to copy/paste:


target = thisComp.layer("Target");

dist = Math.floor( length(position, target.position) );

maxSize = 33;

minSize = 10;

range = target.effect("range")("Slider");

// how fast the layer starts to scale up once the target is in range.

sensitivity = target.effect("sensitivity")("Slider");

scle = linear(dist, range, sensitivity, maxSize, minSize);

[scle, scle];


Freeness sponsored by KeyFast. Check it out! https://aescripts.com/keyfast/

$
I want this!

1 After Effects file

Size
6.48 MB
Copy product URL

Ratings

5.0
(7 ratings)
5 stars
100%
4 stars
0%
3 stars
0%
2 stars
0%
1 star
0%
$0+

Free - After Effects Expression - Proximity

7 ratings
I want this!