|
@@ -51,7 +51,8 @@ var viewZoom = script.addFloatParameter("View Zoom", "", 0.5, 0., 1.); //part of
|
|
|
var viewFollowCursor = script.addBoolParameter("follow Cursor", "", false);
|
|
|
var followCursor = false ;
|
|
|
var followZoom = 0.5 ;
|
|
|
-
|
|
|
+var followRatems = 1.;
|
|
|
+var followDelta = 0.;
|
|
|
// var sequence_structure = { params: {},
|
|
|
// groups:{},
|
|
|
// keys:{
|
|
@@ -151,7 +152,10 @@ function update(deltaTime){
|
|
|
exportSequenceFile(saveFile);
|
|
|
script.log("sequence autosave");
|
|
|
}
|
|
|
- if(followCursor){
|
|
|
+
|
|
|
+ followDelta += deltaTime ;
|
|
|
+ if(followCursor && (followDelta>followRatems)){
|
|
|
+ followDelta = 0. ;
|
|
|
seq_followCursor() ;
|
|
|
}
|
|
|
}
|