Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions try to understand

  • Posted by Tunc Erenkus on April 30, 2020 at 4:00 pm

    Hi,
    i am new and try to understand the logic. When i run this on position property:

    a = [100, 500];
    b= [1000, 500];
    AB = linear(time, 0, 3, a, b);
    BA = linear(time, 3, 6, b, a);

    or
    a = [100, 500];
    b= [1000, 500];
    BA = linear(time, 3, 6, b, a);
    AB = linear(time, 0, 3, a, b);

    its always second “linear” command works. Why?
    thanks in advance!

    Matthias Stoll replied 4 years, 4 months ago 2 Members · 5 Replies
  • 5 Replies
  • Matthias Stoll

    April 30, 2020 at 4:43 pm

    It always puts in the last variable defined. You’ll need an if-statement telling the expression when to activate which variable.

    a = [100, 500];
    b= [1000, 500];
    AB = linear(time, 0, 3, a, b);
    BA = linear(time, 3, 6, b, a);

    if (time<3) {AB} else {BA};

  • Matthias Stoll

    April 30, 2020 at 4:44 pm

    Sorry the < symbol alway gets messed up..

  • Tunc Erenkus

    April 30, 2020 at 4:57 pm

    🙁

  • Tunc Erenkus

    April 30, 2020 at 5:14 pm

    ah ok, fixed with < symbol, i see what you mean. thanks for reply.

    i am thinking about loop my solid between A – B, without keys/markers and loop command… is it possible?

  • Matthias Stoll

    April 30, 2020 at 7:43 pm

    If(time <3){AB} else {BA};

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