Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Tie a Yellow Expression ’round an old KeyFrame…”

  • Tie a Yellow Expression ’round an old KeyFrame…”

    Posted by Captain Mench on September 23, 2006 at 7:20 pm

    I used to have a header for an expression I kept around on my desktop that I was able to tie an expression directly to a keyframe. I can’t find it anymore.

    On second keyframe I want this expression to begin type thing.

    What am I missing??

    Thanks,

    CaptM

    Captain Mench replied 19 years, 7 months ago 2 Members · 4 Replies
  • 4 Replies
  • Captain Mench

    September 23, 2006 at 7:26 pm

    AARGH!!!

    Sorry AGAIN!! — found it… was on my stickies (that I never use!!)

    Here it is if anyone wants it… thanks go out to Dan Ebberts at http://www.motionscript.com!!

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

    Done.

    Thanks - and sorry for the lame post.

    CaptM

  • Captain Mench

    September 23, 2006 at 7:32 pm

    Well — it’s still not right… any thoughts as to how I messed it up?

    I’m trying to shake the Y Rotation of a camera at a given keyframe. I’ve done this before, but it was a long time ago.

    Thanks

    CaptM

  • Mike Clasby

    September 23, 2006 at 9:17 pm

    It works for me on Y rotation of the camera if you set 2 keyframes and then change that last line to:

    value + [x];

    or you get the “must be of 1 deminsion, not 2” error. So the whole expression is:

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

    I didn't know this one, thanks for bringing it up.

  • Captain Mench

    September 23, 2006 at 9:33 pm

    Hey thanks for the fix!!

    It worked on the ORIENTATION parameters, but I couldn’t figure out how to get it right on the rotational only.

    thanks!

    Changing my stickie for my shakie!

    Thanks

    CaptM

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