bump version to after effects 2025 and move to js based osascript

This commit is contained in:
ChrisD 2024-11-19 17:03:11 +01:00
parent 5661e690de
commit 2dfd354792

View file

@ -205,13 +205,13 @@ def enqueue_job(event):
if event_id == 'pause' or event_id == 'outro' or event_id == 'bgloop':
copyfile(args.project + event_id + '.aepx', work_doc)
if platform.system() == 'Darwin':
run(r'/Applications/Adobe\ After\ Effects\ 2024/aerender -project {jobpath} -comp {comp} -mp -output {locationpath}',
run(r'/Applications/Adobe\ After\ Effects\ 2025/aerender -project {jobpath} -comp {comp} -mp -output {locationpath}',
jobpath=work_doc,
comp=event_id,
locationpath=intermediate_clip)
if platform.system() == 'Windows':
run(r'C:/Program\ Files/Adobe/Adobe\ After\ Effects\ 2024/Support\ Files/aerender.exe -project {jobpath} -comp {comp} -mp -output {locationpath}',
run(r'C:/Program\ Files/Adobe/Adobe\ After\ Effects\ 2025/Support\ Files/aerender.exe -project {jobpath} -comp {comp} -mp -output {locationpath}',
jobpath=work_doc,
comp=event_id,
locationpath=intermediate_clip)
@ -233,26 +233,29 @@ def enqueue_job(event):
if platform.system() == 'Darwin':
copyfile(args.project+'intro.scpt', ascript_doc)
run('osascript {ascript_path} {scriptpath}',
scriptpath=script_doc,
ascript_path=ascript_doc)
run(r'''osascript -l JavaScript -e "ae = Application('Adobe After Effects 2025'); ae.activate(); ae.doscriptfile('{scriptpath}');"''',
scriptpath=script_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\ 2024/aerender -project {jobpath} -comp "intro" -mp -output {locationpath}',
run(r'/Applications/Adobe\ After\ Effects\ 2025/aerender -project {jobpath} -comp "intro" -mp -output {locationpath}',
jobpath=work_doc,
locationpath=intermediate_clip)
if platform.system() == 'Windows':
run_once(r'C:/Program\ Files/Adobe/Adobe\ After\ Effects\ 2024/Support\ Files/AfterFX.exe -noui -r {scriptpath}',
run_once(r'C:/Program\ Files/Adobe/Adobe\ After\ Effects\ 2025/Support\ Files/AfterFX.exe -noui -r {scriptpath}',
scriptpath=script_doc)
time.sleep(5)
run(r'C:/Program\ Files/Adobe/Adobe\ After\ Effects\ 2024/Support\ Files/aerender.exe -project {jobpath} -comp "intro" -mfr on 100 -output {locationpath}',
run(r'C:/Program\ Files/Adobe/Adobe\ After\ Effects\ 2025/Support\ Files/aerender.exe -project {jobpath} -comp "intro" -mfr on 100 -output {locationpath}',
jobpath=work_doc,
locationpath=intermediate_clip)
if args.debug or args.keep: