Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Changing properties of an expression at a certain point in time

  • Changing properties of an expression at a certain point in time

    Posted by Theodore Steiner on March 2, 2015 at 7:12 pm

    Hello. First time poster and very, very new to the world of expressions.

    My apologies if this same question appears in a different post.

    I would like to know if it is possible to change the elements of an expression at a certain point.

    For example, let’s say I have a wiggle expression on the opacity of an object, and I am wiggling like so: Wiggle(1,10)

    But after 3 seconds of this, I would like the wiggle to change to: Wiggle(1,5).

    How might I go about this?

    Theodore Steiner replied 11 years, 2 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    March 2, 2015 at 7:57 pm

    One way,

    if (time < 3)
    wiggle(1,10)
    else
    wiggle(1,50)

    but this will probably generate a discontinuity at 3 seconds. So another approach would be:

    w1 = wiggle(1,10);
    w2 = wiggle(1,5);
    ease(time,2.75,3.25,w1,w2);

    Dan

  • Theodore Steiner

    March 8, 2015 at 8:29 pm

    Seems simple enough. Thanks Mr. Ebberts.

    I just have one more question. Let’s say after the Second Wiggle (1,50) I want it to drop down back to (1,10) is it as simple as adding in a w3 element and including it in the ease equation?

    Best,
    T

  • Dan Ebberts

    March 8, 2015 at 9:10 pm

    More like this probably:

    w1 = wiggle(1,10);
    w2 = wiggle(1,50);
    easeTime = .5;
    t1 = 3;
    t2 = 6;
    if (time < (t1+t2)/2)
    ease(time,t1-easeTime/2,t1+easeTime/2,w1,w2)
    else
    ease(time,t2-easeTime/2,t2+easeTime/2,w2,w1);

    Dan

  • Theodore Steiner

    March 9, 2015 at 1:13 am

    Dan you’re wonderful!

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