Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to create increasing space between objects in After Effects

New Here ,
Jun 11, 2024 Jun 11, 2024

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?

TOPICS
Expressions , How to , Scripting
891
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 11, 2024 Jun 11, 2024

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 12, 2024 Jun 12, 2024

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:

RickGerard_0-1718193770366.gif

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 12, 2024 Jun 12, 2024

That's really elegant @Rick Gerard 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 12, 2024 Jun 12, 2024
LATEST

Thanks...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines