Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Not how did THEY create this… How did I do it??

  • Not how did THEY create this… How did I do it??

    Posted by Captain Mench on January 29, 2008 at 8:18 pm

    I seem to have lost my stickies of all my expressions I’ve kept over the years in my last system migration. I’ve managed to recreate most of them from past projects where I’d use different expressions, but this one is old and can’t seem to find the project.

    https://homepage.mac.com/captmench/Slam.m4v

    NOW —

    I stole this from someone somewhere and for the life of me I can’t remember who or where.

    Any ideas? It had something to do with “On second keyframe, the first being the position OUT the second being the position keyframe IN, wiggle this much and slow down for this much time.”

    But of course typing that in doesn’t do much for me.

    Thank you who ever came up with the expression… and thank you in advance for helping me out again.

    CaptM

    Captain Mench replied 18 years, 3 months ago 5 Members · 6 Replies
  • 6 Replies
  • Captain Mench

    January 29, 2008 at 8:40 pm

    Dave… yeah, exactly my point.

    This, judging from the age of my boys was quite some time ago and probably was just something I quickly did as a test of process. I do have the final output as it now shows up at the end of my reel, but no – I don’t have the original project anymore.

    I’ll keep digging.

    CaptM

  • Erik Pontius

    January 29, 2008 at 8:42 pm
  • Steve Roberts

    January 29, 2008 at 8:57 pm

    Or you could tie expression controls to the wiggle parameters, and animate the controls.

  • Darby Edelen

    January 29, 2008 at 9:02 pm

    [Erik Pontius] “maybe it was this?
    https://forums.creativecow.net/readpost/2/917108

    Wow, that was a complicated expression =)

    It shouldn’t be that difficult.

    If you want it to be a wiggled value you could do something like this:


    f = 2; //frequency of the wiggle
    a = 10; //amplitude of the wiggle
    k1 = key(2).time; //the time of the 2nd keyframe
    k2 = key(3).time; //the time of the 3rd keyframe
    mid = (k2 - k1) / 2; //midway between the 2nd and 3rd keyframe
    offset = [0,0,0]; //how much the layer will be offset

    delta = wiggle(f, a) - value; //the maximum offset (this value wiggles)

    if(time < k1 + mid) offset = linear(time, k1, k1 + mid, offset, delta); //if we're not yet halfway between k1 and k2 then increase the offset from [0,0,0] at k1 to the maximum wiggled amount (delta) at the midpoint else offset = linear(time, k2, k2 - mid, delta, offset); //if we've passed the midpoint then decrease the offset from the maximum wiggled amount (delta) at the midpoint to [0,0,0] at k2 value + offset; //return the position value with the offset added

    Note that the above code requires there be a 2nd and 3rd keyframe on the position property. This is a simple version of the effect, but it works.

    Darby Edelen
    Designer
    Left Coast Digital
    Santa Cruz, CA

  • Victor Nash

    January 29, 2008 at 9:54 pm
  • Captain Mench

    January 30, 2008 at 1:07 am

    Man, Victor!!!

    Where’d you finally find that??? That was exactly the tutorial I remember.

    Thanks SO much.

    Darby — Giving that a try too.

    Thanks SO much for everyone’s free time — or time for free is what I mean.

    Please bless the givers.

    CaptM

    FYI – for those of you keeping score:

    t = time – key(2).time;
    if (t<0){
    value;
    }else{
    veloc = 30;
    amplitude = 70;
    decay = 4
    x = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
    value + [x,0];
    }

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