Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Increase size of shape layer based on markers.

  • Increase size of shape layer based on markers.

    Posted by Mac Lad on May 21, 2021 at 9:35 pm

    Hello guys,

    I have a Layer which has 5 markers placed on it with respective number in marker comment. There is basic animation of scaling on a shape layer on x axis using linear() function. Is it possible to trigger same scale animation based on the maker crossed by playhead but adding 50 pixel on every marker crossed ?

    eg. At first marker scale animation of 0 to 50 is triggered and on next marker 50 to 100 is triggered and so on.

    Thank you!

    Mac Lad replied 5 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    May 22, 2021 at 9:18 am

    Something along these lines:

    nk = marker.nearestKey(time);
    nki = Math.max(1, nk.time<=time ? nk.index : nk.index-1 );
    nkt = marker.key(nki).time;
    transition = 0.3;
    s=linear(time, nkt, nkt+transition, 50+(nki*50), 100+(nki*50));
    [s,s];
  • Mac Lad

    May 23, 2021 at 2:18 pm

    some modifications and it worked ..thanks a lot!!

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