-
Delayed start time of an expression
Hi all!
I’m using this well-known expression 🙂freq = 8.0;
amplitude = 15;
decay = 4;
amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*time);I applied it to the rotation property of one layer in my composition and I need it to start 2 seconds later the “0” frame of the composition… but I noticed it starts at the beginning of the composition and not at the beginning of the layer itself… I’ve been browsing the forum for hours trying to figure out how to do this! I’ve been trying this way…
timeToStart = 2;
if (time >= timeToStart){
t = time - timeToStart;
freq = 8.0;
amplitude = 15;
decay = 4;
amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*time);
}else{
0;
}
but it is not working 🙁
I know another possibility could be using a marker, but I couldnt make it work as well!
Now I’m just looking for the quick&easy way, just writing in the expression in which sec it should start!
I know this question has been asked again and again, but it’s my very first day handling expressions and my knowledge about coding is really basic! Hope you can help me..Thank you!
Chiara