Skip to main content
Participant
Jun 11, 2024 9:40 AM UTC
Question

How to create increasing space between objects in After Effects

Hi! I'm looking for a way to distribute objects with an increasing (exponential?) spacing between them. Do you have any tips for a script/plugin/expression, which could help me achieve this in After Effects?

4 replies

Community Expert
Jun 12, 2024 12:03 PM UTC

Name the first layer "First Layer" and then add an Expression Control Slider named Exponent to the first layer.

 

Add this expression to every layer below the "First Layer."

ofst = thisComp.layer("First Layer").effect("Exponent")("Slider")/10;
ref = thisComp.layer(index - 1).position;
e = index * Math.exp(ofst);
[ref[0] + e, ref[1]];

The slider lets you adjust the distance between the layers. This is what you get:

 

 

Translate
ShiveringCactus
Community Expert
Community Expert
Jun 12, 2024 12:43 PM UTC

That's really elegant @Rick Gerard 

Translate
Community Expert
Jun 12, 2024 12:58 PM UTC

Thanks...

Translate
Mylenium
Legend
Jun 11, 2024 3:02 PM UTC

Could be as simple as tying a Math.pow() or Math.exp() expression to the X position. It's just  ot really clear what the values are supposed to be.

 

Mylenium

Translate