How to advance timeline 1 second when button pressed


(Peter Bright) #1

Hi All, Is there a way to use Javascript to advance a timeline by 1 second each time a ‘next’ button is pressed? (and the opposite, where a ‘prev’ button reverses by 1 second each time it is pressed.)
I’m starting to learn Javascript but I’m so new I’m taking fetus steps not baby steps :wink:


(Hans-Gerd Claßen) #2

hi peter,

hypeDocument.goToTimeInTimelineNamed(hypeDocument.currentTimeInTimelineNamed('timlinename')+1 /*or minus 1 for backwards move*/, 'timlinename')


(Peter Bright) #3

Thanks Hans,

I’ll give that a try :wink:
Appreciate your help!