bump version to after effects 2025 and move to js based osascript
This commit is contained in:
parent
5661e690de
commit
2dfd354792
1 changed files with 11 additions and 8 deletions
|
@ -205,13 +205,13 @@ def enqueue_job(event):
|
||||||
if event_id == 'pause' or event_id == 'outro' or event_id == 'bgloop':
|
if event_id == 'pause' or event_id == 'outro' or event_id == 'bgloop':
|
||||||
copyfile(args.project + event_id + '.aepx', work_doc)
|
copyfile(args.project + event_id + '.aepx', work_doc)
|
||||||
if platform.system() == 'Darwin':
|
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,
|
jobpath=work_doc,
|
||||||
comp=event_id,
|
comp=event_id,
|
||||||
locationpath=intermediate_clip)
|
locationpath=intermediate_clip)
|
||||||
|
|
||||||
if platform.system() == 'Windows':
|
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,
|
jobpath=work_doc,
|
||||||
comp=event_id,
|
comp=event_id,
|
||||||
locationpath=intermediate_clip)
|
locationpath=intermediate_clip)
|
||||||
|
@ -233,26 +233,29 @@ def enqueue_job(event):
|
||||||
if platform.system() == 'Darwin':
|
if platform.system() == 'Darwin':
|
||||||
copyfile(args.project+'intro.scpt', ascript_doc)
|
copyfile(args.project+'intro.scpt', ascript_doc)
|
||||||
|
|
||||||
run('osascript {ascript_path} {scriptpath}',
|
run(r'''osascript -l JavaScript -e "ae = Application('Adobe After Effects 2025'); ae.activate(); ae.doscriptfile('{scriptpath}');"''',
|
||||||
scriptpath=script_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}',
|
# run('osascript {ascript_path} {jobpath} {scriptpath}',
|
||||||
# jobpath=work_doc,
|
# jobpath=work_doc,
|
||||||
# scriptpath=script_doc,
|
# scriptpath=script_doc,
|
||||||
# ascript_path=ascript_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,
|
jobpath=work_doc,
|
||||||
locationpath=intermediate_clip)
|
locationpath=intermediate_clip)
|
||||||
|
|
||||||
if platform.system() == 'Windows':
|
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)
|
scriptpath=script_doc)
|
||||||
|
|
||||||
time.sleep(5)
|
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,
|
jobpath=work_doc,
|
||||||
locationpath=intermediate_clip)
|
locationpath=intermediate_clip)
|
||||||
if args.debug or args.keep:
|
if args.debug or args.keep:
|
||||||
|
|
Loading…
Add table
Reference in a new issue