ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

add starting point to expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Giordana Guerriero
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]


Return to posts index

Anthony Tonev
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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]