|
@@ -84,7 +84,9 @@ function init() {
|
|
|
else{
|
|
|
sequencePath.removeOptions();
|
|
|
sequencePath.addOption(sequence,0);
|
|
|
- sequencePath.setAttribute("readonly", true);}
|
|
|
+ sequencePath.setAttribute("readonly", true);
|
|
|
+ }
|
|
|
+ sequence = local.getChild("parameters").sequence.getKey();
|
|
|
|
|
|
}
|
|
|
|
|
@@ -108,10 +110,10 @@ function scriptParameterChanged(param){
|
|
|
|
|
|
function update(deltaTime){
|
|
|
if(sequence!=""){
|
|
|
-
|
|
|
+ // script.log(doSync);
|
|
|
if(doSync){
|
|
|
syncDelta += deltaTime ;
|
|
|
- // script.log(syncDelta);
|
|
|
+ // script.log(doSync);
|
|
|
if (syncDelta >= syncRatems){
|
|
|
syncDelta = 0. ;
|
|
|
var autosave = struct_buildValuesFromSeq();
|
|
@@ -246,7 +248,7 @@ function importSequenceFile(loadFile){
|
|
|
parameters.syncRate.set(loadData.parameters.SyncRate);
|
|
|
parameters.synchronize.set(loadData.parameters.Synchronize);
|
|
|
sequence = loadData.parameters.Sequence;
|
|
|
- if(sequence!="undefined"){
|
|
|
+ if(1){
|
|
|
|
|
|
parameters.sequence.removeOptions();
|
|
|
parameters.sequence.addOption(sequence,0);
|
|
@@ -421,7 +423,7 @@ function struct_buildValuesFromSeq(){
|
|
|
|
|
|
var tl_seq = root.sequences.getItemWithName(sequence);
|
|
|
|
|
|
- if(tl_sequence!=undefined){
|
|
|
+ if(tl_seq.name!="undefined"){
|
|
|
//build cues if needed
|
|
|
var tl_cues = tl_seq.cues.getItems();
|
|
|
cues = local.getChild("values").keys.cues ;
|
|
@@ -765,7 +767,8 @@ function createNewGroup(){
|
|
|
currentGroup.addFloatParameter(newCue.name, "cue of the group", currentTime, 0.);
|
|
|
var keysContainer = currentGroup.addContainer("keys");
|
|
|
keysContainer.setCollapsed(true);
|
|
|
-
|
|
|
+ tl_seq = root.sequences.getItemWithName(sequence);
|
|
|
+ tl_layers = tl_seq.layers.getItems();
|
|
|
// var struc_layers = util.getObjectProperties(sequence_structure.keys.layers);
|
|
|
if(tl_layers.length){
|
|
|
for(var i=0;i<tl_layers.length; i++ ){
|