Reset timeline with script

Hello touch fam - I’m trying to create an interface for working with audio, and I want to expose a button that can reset the global timeline to its beginning. Any ideas here? I couldn’t find any relevant methods in the timecomp class and looking in local time’s component didn’t yield any revelations either.

Thanks!
B

try a Text DAT with the following code in it:

me.time.frame=0 and run it

Thank you! Much simpler than my present technique of selecting the ui elements from the timeline dialog and having a script click the reset button.

Thanks for this - I am struggling to solve a similar issue though - how might I do the same effect but to a local timeline?

from inside your component you can control your local timeline with commands like:

[code]op(‘local’).time.frame = 0

op(‘local’).time.play = 1

op(‘local’).time.play = 0
[/code]

of course you can also control from the outside like

op('yourCompName/local').time.frame=0
1 Like