Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Use linear() with a shape path

  • Use linear() with a shape path

    Posted by Yoan Boisjoli on March 2, 2021 at 9:36 pm

    Is there a way to have property affect a path?

    I tried to use a linear() function on my shape layer so that it blends between 2 keyframes whenever the scale of a null is triggered but of course it’s not that easy.

    Any clues?

    Thanks in advance!

    var k1 = key(1).value;

    var k2 = key(2).value;

    var s = thisComp.layer("Null 1").transform.scale[0];

    linear(s, 50, 100, k1, k2);

    Yoan Boisjoli replied 3 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 2, 2021 at 10:14 pm

    This might do what you have in mind:

    t1 = key(1).time;

    t2 = key(2).time;

    s = thisComp.layer("Null 1").transform.scale[0];

    valueAtTime(linear(s, 50, 100, t1, t2));

  • Yoan Boisjoli

    March 25, 2021 at 7:12 pm

    Sorry Dan took awhile to reply! Been very busy at work! I wanted to say a big thanks! Not only does this work but you also taught me a very important thing! Thanks again!

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