mch2022 init
This commit is contained in:
parent
59ddf7fee8
commit
cce61a637b
4 changed files with 9787 additions and 7 deletions
19
make-adobe-after-effects.py
Normal file → Executable file
19
make-adobe-after-effects.py
Normal file → Executable file
|
@ -223,18 +223,23 @@ def enqueue_job(event):
|
|||
for key, value in event.items():
|
||||
value = str(value).replace('"', '\\"')
|
||||
scriptstr = scriptstr.replace("$" + str(key), value)
|
||||
|
||||
|
||||
with open(script_doc, 'w', encoding='utf-8') as fp:
|
||||
fp.write(scriptstr)
|
||||
|
||||
copyfile(args.project+args.introfile,work_doc)
|
||||
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
copyfile(args.project+'intro.scpt',ascript_doc)
|
||||
run('osascript {ascript_path} {jobpath} {scriptpath}',
|
||||
jobpath=work_doc,
|
||||
scriptpath=script_doc,
|
||||
ascript_path=ascript_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,
|
||||
|
@ -330,7 +335,7 @@ for event in events:
|
|||
event_print(event, "titlemap replacement")
|
||||
event_print(event, "replacing title %s with %s" % (event['title'], title))
|
||||
event['title'] = title
|
||||
|
||||
|
||||
event_print(event, "enqueued as " + str(event['id']))
|
||||
|
||||
job_id = enqueue_job(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue