Skip to main content
iamjustoneman
Known Participant
March 30, 2022
Answered

Set a delay on an expression

  • March 30, 2022
  • 1 reply
  • 678 views

Hi all, 

 

I'm a newbie when it comes to Expressions. Basically, I have the following expression that moves a composition continuously:

value - [0, time *20]

...what I would like to do is simply delay by 5 seconds before the above runs. 

 

That's it, any help would be greatly appreciated.

 

Thanks

This topic has been closed for replies.
Correct answer Dan Ebberts

Something like this maybe:

tStart = 5;
t = Math.max(time - tStart,0);
value - [0, t*20]

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
March 30, 2022

Something like this maybe:

tStart = 5;
t = Math.max(time - tStart,0);
value - [0, t*20]
iamjustoneman
Known Participant
March 30, 2022

that's brilliant, thanks Dan 🙂