{
var composition = app.project.activeItem;
var layers = composition.selectedLayers;
var properties = composition.selectedProperties;
var numFrames = Math.floor(composition.duration / composition.frameDuration);
var outputString = ''
output('');
output('');
buildFile();
writeFile();
function buildFile() {
if (properties.length == 0) {
alert("No properties selected.");
}
else {
exportProperties();
}
}
function output(value) {
outputString += value + "\r";
}
function writeFile() {
output('');
var file = new File(Folder.desktop.absoluteURI + "/" + "export.txt");
file.open("w","TEXT","????");
file.write(outputString);
file.close();
file.execute();
}
function exportProperties() {
var i = 0;
var l = numFrames;
for (; i');
// build properties list
var x = 0;
var y = properties.length;
var source = [];
var sourceCount = 0;
var currentContainer;
for (; x');
var x = 0;
var y = source[pn].values.length;
for (; x');
}
output(' ');
}
}
function exportProperty(prop, time) {
var val = prop.valueAtTime(time, true);
if (val.length > 1) {
exportMultiValue(prop, val);
}
else {
exportSingleValue(prop, val);
}
}
function exportSingleValue(prop, val) {
output(' ');
}
function exportMultiValue(prop, val) {
var str = ' ';
output(str);
}
function outputObject(obj) {
var out = "";
for (var s in obj) {
out += s + "\n";
}
alert(out);
}
}