Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions percentage of scale

  • percentage of scale

    Posted by Lucia Bastenhof on November 22, 2007 at 10:28 pm

    Hi ! 🙂

    I’m using an expression Dan had found for me, which works perfectly, to make the same animation at different times on many layers.

    I have an animation on Scale, the same for each layer :

    delay = 3; //number of frames to delay

    idx = Math.floor((index-1)/2);
    d = delay*thisComp.frameDuration*(idx);
    thisComp.layer(1).scale.valueAtTime(time – d)

    But now, let’s complicate it a bit ! 🙂
    I need some of the layers (it’s only circles) to follow this animation (time is OK), but being a little smaller : those circles should be about 65% of the size of the other ones (and of the 1st layer).

    I read some post about percentage on the forum, but I’m really not able to adapt it to this expression ! 🙂

    Thank you a lot for your help !

    Lucia Bastenhof replied 18 years, 5 months ago 2 Members · 3 Replies
  • 3 Replies
  • Lucia Bastenhof

    November 23, 2007 at 12:40 pm

    Maybe nobody knows… but maybe you could tell me how to ask one layer to follow the same animation of scale of another one, but 65 % smaller ?
    Then I’d try to mix it with the time expression… ?

    Thanks for your help.

  • Dan Ebberts

    November 23, 2007 at 5:29 pm

    Apply an expression like this to its scale property:

    thisComp.layer(“other layer”).transform.scale * 0.65;

    Dan

  • Lucia Bastenhof

    November 23, 2007 at 5:56 pm

    GREAT, DAN !! Thanks !! 🙂

    This expression just needed to be written after the other one, and it works !

    Thank you a lot !

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy