Copy link to clipboard
Copied
Hallo again!
I know there must be some ways to trigger the expression to start not immediately, but at any time I wish.
For e.g. I have here a code:
veloc = 35;
amplitude = 30;
decay = 1.0;
y = amplitude*Math.cos(veloc*time)/Math.exp(decay*time);
value + [0,y]
And I would like to delay the start in 2sek not just by pulling the layer to the right, but to do it in terms of a code.
Could anybody give me a hint?
would be very thankful
Copy link to clipboard
Copied
See this page for an example that should get you started.
Copy link to clipboard
Copied
The codes were really very helpful, thak you!
Copy link to clipboard
Copied
That was helpful, thank you!
Copy link to clipboard
Copied
I think this is more what you're looking for:
timeToStart = 2;
t = time - timeToStart;
if (t >= 0){
veloc = 35;
amplitude = 30;
decay = 1.0;
y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
}else{
y = 0;
}
value + [0,y]
Dan