|
@@ -81,7 +81,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();
|
|
@@ -149,12 +149,12 @@ function update(deltaTime){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // saveDelta += deltaTime ;
|
|
|
- // if (saveDelta >= saveRatems){
|
|
|
- // saveDelta = 0. ;
|
|
|
- // exportSequenceFile(saveFile);
|
|
|
- // script.log("sequence autosave");
|
|
|
- // }
|
|
|
+ saveDelta += deltaTime ;
|
|
|
+ if (saveDelta >= saveRatems){
|
|
|
+ saveDelta = 0. ;
|
|
|
+ exportSequenceFile(saveFile);
|
|
|
+ script.log("sequence autosave");
|
|
|
+ }
|
|
|
|
|
|
followDelta += deltaTime ;
|
|
|
if(followCursor && (followDelta>followRatems)){
|