{
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 = properties.length;
// build properties list
var x = 0;
var y = properties.length;
var source = [];
var sourceCount = 0;
var currentContainer;
for (; x');
exportProperty(properties[x])
output(' ');
}
}
}
function exportProperty(prop) {
var val = prop.valueAtTime(0 * composition.frameDuration, true);
if (val.length > 1) {
exportMultiValue(prop);
}
else {
exportSingleValue(prop);
}
}
function exportSingleValue(prop) {
var i = 0;
var l = numFrames;
var str = ' \n';
for (; i\n';
}
str += " ";
output(str);
}
function exportMultiValue(prop) {
var i = 0;
var l = numFrames;
var str = ' \n';
for (; i 0) {
str += ' \n';
}
}
str += " ";
output(str);
}
function outputObject(obj) {
var out = "";
for (var s in obj) {
out += s + "\n";
}
alert(out);
}
}