|
@@ -289,7 +289,7 @@ function importSequenceFile(loadFile){
|
|
|
var layersList = util.getObjectProperties(loadData.values.keys.layers, true, false);
|
|
|
if(layersList.length){
|
|
|
for(var i=0; i<layersList.length; i++ ){
|
|
|
- var layer = tl_sequence.layers.addItem("Mapping");
|
|
|
+ var layer = tl_sequence.layers.addItem(loadData.values.keys.layers[layersList[i]].type);
|
|
|
layer.setName(layersList[i]);
|
|
|
var keysList = util.getObjectProperties(loadData.values.keys.layers[layersList[i]], true, false);
|
|
|
if(keysList.length){
|
|
@@ -299,8 +299,9 @@ function importSequenceFile(loadFile){
|
|
|
key.value.set(loadData.values.keys.layers[layersList[i]][keysList[j]].value);
|
|
|
key.position.set(loadData.values.keys.layers[layersList[i]][keysList[j]].time);
|
|
|
}
|
|
|
+ layer.automation.reorderItems();
|
|
|
}
|
|
|
- layer.automation.reorderItems();
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -384,7 +385,7 @@ function exportSequenceFile(fileObj){
|
|
|
var exportLayer = exportData.values.keys.layers[layersList[i]] = {};
|
|
|
var currentLayer = layers.getChild(layersList[i]);
|
|
|
var currentLayersKeys = util.getObjectProperties(currentLayer, true, false);
|
|
|
- // exportLayer["type"] = currentLayer.getType();
|
|
|
+ exportLayer["type"] = values.keys.layerTypes.getChild(layersList[i]).get();
|
|
|
if (currentLayersKeys.length){
|
|
|
for(var j=0; j<currentLayersKeys.length; j++){
|
|
|
|