Skip to main content
Kelly Anderson
Inspiring
November 20, 2015
Answered

set start time of sequence

  • November 20, 2015
  • 2 replies
  • 927 views

Hello,

Is there any way to set the start time of a sequence?

thanks,

Kelly

This topic has been closed for replies.
Correct answer Bruce Bullis

Sure; change the sequence's zeroPoint.

var startTimeOffset  = activeSequence.zeroPoint;

2 replies

Kelly Anderson
Inspiring
November 23, 2015

Hey Bruce, thanks for the reply.

Unfortunately, I'm still unsure how to apply this.

I don't see zeroPoint in the Data Browser. 

Maybe more context is needed.  Say I want to set the start time of the active sequence to 00;59;50;00

thanks so much for you help,

Kelly

Bruce Bullis
Community Manager
Community Manager
November 23, 2015

var seq = app.project.activeSequence;

if (seq){

  var newStartTime = seq.end - seq.timebase;

  seq.setZeroPoint(newStartTime);

}

setZeroPoint takes a time in ticks; 254016000000 ticks per second.

Kelly Anderson
Inspiring
November 23, 2015

Success.  Thanks so much.

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
November 23, 2015

Sure; change the sequence's zeroPoint.

var startTimeOffset  = activeSequence.zeroPoint;