Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions X Swinging Expression Modification

  • X Swinging Expression Modification

    Posted by Victor Nash on November 12, 2008 at 3:37 pm
    amp=50; 
    freq=2; /
    decay=2; 
    // find previous marker
    
    n = 0; //
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){
    n--;
    }
    }
    
    if (n > 0) t = time - marker.key(n).time else t =0;
    a = amp*Math.sin(freq*t*Math.PI*-2)/Math.exp(decay*t);
    a

    Can someone help me modify this expression so I wont have to “Split” the layer.

    Im wanting to retain my Keyframed values. Adding this expression sets it back to 0 degrees. I usually split the layer right as the 2 keyframe lands in its final postion and add the trigger to that layer..

    Victor Nash replied 17 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 12, 2008 at 4:36 pm

    Try changing the last line to:

    value + a

    Dan

  • Victor Nash

    November 12, 2008 at 6:27 pm

    Thank You Dan.. It always makes cents after 🙂

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