FORUMS: list search recent posts

Proportional Scaling of multiple objects

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brad Graber
Proportional Scaling of multiple objects
on Aug 24, 2012 at 5:18:21 pm

Hi All,
I want to translate multiple horizontal lines on the Y axis, but have the space between the lines increase proportionally. Sort of like vertical kerning of objects (without the objects getting larger). How could I make this happen?

Thanks!

BG



Return to posts index

Dan Ebberts
Re: Proportional Scaling of multiple objects
on Aug 24, 2012 at 5:47:48 pm

Something like this maybe:


offset = 50;
mult = 1.2;
startIdx = 1;
dx = index-startIdx;
if(dx > 0)
thisComp.layer(index-1).transform.position - [0,offset*Math.pow(mult,dx-1)];
else
value


The expression assumes that startIdx is set to the index of the first layer participating and the other participating layers are below it in the timeline layer stack.

Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]