mch2022 init

This commit is contained in:
derchris 2022-07-17 03:42:54 +02:00
parent 59ddf7fee8
commit cce61a637b
4 changed files with 9787 additions and 7 deletions

9
make-adobe-after-effects.py Normal file → Executable file
View file

@ -231,11 +231,16 @@ def enqueue_job(event):
if platform.system() == 'Darwin':
copyfile(args.project+'intro.scpt',ascript_doc)
run('osascript {ascript_path} {jobpath} {scriptpath}',
jobpath=work_doc,
run('osascript {ascript_path} {scriptpath}',
scriptpath=script_doc,
ascript_path=ascript_doc)
#run('osascript {ascript_path} {jobpath} {scriptpath}',
# jobpath=work_doc,
# scriptpath=script_doc,
# ascript_path=ascript_doc)
run(r'/Applications/Adobe\ After\ Effects\ 2022/aerender -project {jobpath} -comp "intro" -mp -output {locationpath}',
jobpath=work_doc,
locationpath=intermediate_clip)

9752
mch2022/intro.aepx Normal file

File diff suppressed because one or more lines are too long

23
mch2022/intro.jsx Normal file
View file

@ -0,0 +1,23 @@
app.open(new File("$filename"));
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;
textDocument_title.text = "$title";
textProp_title.setValue(textDocument_title);
textDocument_persons.text = "$personnames";
textProp_persons.setValue(textDocument_persons);
app.project.close(CloseOptions.SAVE_CHANGES);

BIN
mch2022/intro.scpt Normal file

Binary file not shown.