Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions add starting point to expression

  • add starting point to expression

    Posted by Giordana Guerriero on January 11, 2018 at 12:43 pm

    Hello, I found this very heplful expression by Dan Ebberts, but I don’t know how to make it start at some point of my layers. Any ideas? Thank you

    Position
    yVelocity = 200; //pixels per second
    oscFreq = 1.5; //oscillations per second
    oscDepth = 35; //oscillation depth (pixels)
    drift = 25; // drift (wind?) (pixels per second: - = left, + = right)

    value + [oscDepth*Math.sin(oscFreq*Math.PI*2*time) + drift *time,
    yVelocity*time,0]

    Anthony Tonev replied 8 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Anthony Tonev

    January 12, 2018 at 5:09 am

    At some point? You mean at some time?

    Try this if you want it to start at 5 second.

    start =5;
    adjTime = time-start;
    if(time >start){

    yVelocity = 200;
    oscFreq = 1.5;
    oscDepth = 35;
    drift = 25;

    value + [oscDepth*Math.sin(oscFreq*Math.PI*2*adjTime) + drift *adjTime,
    yVelocity*(adjTime),0];

    }else
    value

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