Browse Source

added seq_moveCurrentTime callback to move cursor of a defined time

eLandon-tfCamera 4 years ago
parent
commit
bd70e17a19
1 changed files with 7 additions and 2 deletions
  1. 7 2
      SequenceMgr.js

+ 7 - 2
SequenceMgr.js

@@ -80,7 +80,7 @@ function init() {
 	// script.log(root.sequences.truc.viewStartTime.get();)
 	saveFile.set("sequence_autosave.json");
 	saveFile.setAttribute("readonly", true);
-	importSequenceFile(saveFile);
+	//importSequenceFile(saveFile);
 	
 	// var audioLayer = root.sequences.truc.layers.audio ;
 	// var newClip = audioLayer.clips.addItem();
@@ -886,6 +886,11 @@ function seq_buildSeqFromValues(){}
 //use file to rebuild sequence
 function seq_buildSeqFromFile(){}
 
+function seq_MoveCurrentTime(deltaSeconds){
+	var tl_seq = root.sequences.getItemWithName(sequence);
+	var currentTime = tl_seq.currentTime.get();
+	tl_seq.currentTime.set(currentTime + deltaSeconds);
+}
 
 function createNewGroup(){
 	script.log("create new group");
@@ -956,4 +961,4 @@ function seq_followCursor(){
 	tl_seq.viewStartTime.set(startTime);
 	tl_seq.viewEndTime.set(endTime);
 	
-}
+}