Intro for 35c3

This commit is contained in:
v0tti 2018-12-19 19:07:52 +01:00
parent 7bf2c94ef5
commit b1b3dde7b3
25 changed files with 30191 additions and 0 deletions

31
35c3/intro.jsx Executable file
View file

@ -0,0 +1,31 @@
var comp;
for (var i = 1; i <= app.project.numItems; i ++) {
if ((app.project.item(i) instanceof CompItem) && (app.project.item(i).name === 'intro')) {
comp = app.project.item(i);
break;
}
}
var layer_title = comp.layer('intro_title');
var textProp_title = layer_title.property("Source Text");
var textDocument_title = textProp_title.value;
var layer_persons = comp.layer('intro_personnames');
var textProp_persons = layer_persons.property("Source Text");
var textDocument_persons = textProp_persons.value;
var layer_id = comp.layer('intro_id');
var textProp_id = layer_id.property("Source Text");
var textDocument_id = textProp_id.value;
textDocument_title.text = "$title";
textProp_title.setValue(textDocument_title);
textDocument_persons.text = "$personnames";
textProp_persons.setValue(textDocument_persons);
textDocument_id.text = "$id";
textProp_id.setValue(textDocument_id);
app.project.save();
app.quit();