Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects bounce in (by expression?)

  • bounce in (by expression?)

    Posted by David Modijefsky on August 10, 2006 at 11:27 am

    I’m looking for an expression to pop (or bounce in) texts or elements on screen. So it looks like the text comes in a little closer to the camera, then wiggles back in scale to it’s actual size. Does this description make any sense? I did a few searches and tried keyframing but didn’t came up with what I’m looking for.

    Doug Bassett replied 15 years, 6 months ago 4 Members · 8 Replies
  • 8 Replies
  • David Modijefsky

    August 10, 2006 at 12:00 pm

    Oops, I did a search without ‘archives’ checked on. Now I’ve found ‘squach & stretch’ from Dan which I was able to modify to my needs with my limited knowledge of expressions. That leaves me with 1 question though. The expression only works when the layer starts at frame 0. How do I alter the code so that I can move the layer in point where ever I like? The problems are in lines 4 and 5 I guess. This is what I have so far:

    max_dev=20; // max deviation in pixels
    spd=35; //speed of oscillation
    decay=10; //how fast it slows down
    x=scale[0]+max_dev*Math.sin(spd*(time-in_point))/Math.exp(decay*time);
    y=scale[0]+max_dev*Math.sin(spd*(time-in_point))/Math.exp(decay*time);
    [x,y]

  • Dan Ebberts

    August 10, 2006 at 3:11 pm

    This should do it:

    max_dev=20; // max deviation in pixels
    spd=35; //speed of oscillation
    decay=10; //how fast it slows down
    t = time – in_point;
    s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
    value + [s,s]

    Dan

  • Mike Clasby

    August 10, 2006 at 4:01 pm

    You might find this useful, and the I have a question for Dan. Here’s the same thing triggered by a marker set on the layer (From one of Dan’s earlier posts):

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){
    n–;
    }
    }

    if (n == 0){
    value;
    }else{
    max_dev=20; // max deviation in pixels
    spd=35; //speed of oscillation
    decay=10; //how fast it slows down
    t = time – marker.key(n).time;
    s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
    value + [s,s];
    }

    Question for Dan, I hacked the above from a “Marker Triggers Move” expression of yours, my question is, can I make the Trigger specific to a markers name, like one marker triggers a Move and a different marker (same layer)triggers a Squish and Squash?

  • Dan Ebberts

    August 10, 2006 at 4:10 pm

    It depends on which version of AE you’re running. You can’t access the comment in the newer versions but you used to be able to with marker.value. Hopefully this very useful feature will be restored in a future version.

    Dan

  • Mike Clasby

    August 10, 2006 at 5:08 pm

    Thanks.

  • David Modijefsky

    August 10, 2006 at 9:29 pm

    Thanx Dan! So if I have expression questions in the future it’s wise to specify which version of AE I’m running?

  • Dan Ebberts

    August 11, 2006 at 4:39 pm

    Sure, that would be helpful. Especially if it’s not the latest version.

    Dan

  • Doug Bassett

    October 22, 2010 at 6:47 pm

    I know this is an old post, but how can I refer to time other than in point?

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