Adjusting the timeline programmatically

I've been looking at programmatically setting the clock and timeline position and was wondering what the appropriate way to do that would be.

I know I can grab the current viewer item and set viewer.clock.currentTime and set the current time on the animation widget but, if I set that, the timeline does adjust so that I can see the current time. I have to scroll and find the position. Is there a way that I haven't yet discovered to make the timeline auto adjust when i change the currentTime? Ideally, I would like for it to adjust to have the time I set to be the leftmost position on the timeline. Can that be done?

Timline.zoomTo(start, stop) is what you want. We’re planning on refactoring/documenting the timeline in the near future so make it easier to learn/use.

Awesome, thanks Matthew