fix missing line in example AE script (this only cost me 5 hours of pain yay)

This commit is contained in:
Leif Niemczik 2024-10-06 14:11:51 +02:00
parent 471e0c38b7
commit 9504087fc7
4 changed files with 5241 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

5217
voc_ae/intro.aepx Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,23 +1,29 @@
var comp;
var projectFile = new File("$filename")
app.open(projectFile)
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;
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_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_persons = comp.layer("intro_personnames")
var textProp_persons = layer_persons.property("Source Text")
var textDocument_persons = textProp_persons.value
textDocument_title.text = "$title";
textProp_title.setValue(textDocument_title);
textDocument_title.text = "$title"
textProp_title.setValue(textDocument_title)
textDocument_persons.text = "$personnames";
textProp_persons.setValue(textDocument_persons);
textDocument_persons.text = "$personnames"
textProp_persons.setValue(textDocument_persons)
app.project.save();
app.quit();
app.project.save()
// app.quit()