| **add starting point to expression**
on Jan 11, 2018 at 12:43:26 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]

| **Re: add starting point to expression** on Jan 12, 2018 at 5:09:27 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