Copy link to clipboard
Copied
hi people
Would anyone know how to quit and then relaunch After Effects using a script. I've tried most everything I can think of including using BridgeTalk from within ESTK but I can't get anything to work.
basically what I need to do is launch AE, open a project, render what's in the queue, quit After effects, and then repeat... I can manage to get it all happening except for the application launch.
any suggestions greatly appreciated.
Copy link to clipboard
Copied
The question is what kind of script it should be and by which host app it should be run. If it is an Ae script, it will stop running when you quit After Effects (a script cannot continue to run without its host).
What you could do is to have another kind of script (for example a local node.js script) and let this script open Ae and execute other Ae scripts. I haven't tried it, yet, but this could be helpful if you want to try the approach with a node.js script: after-effects
Copy link to clipboard
Copied
have you considered using a shell script in terminal? e.g.
osascript -e 'tell application "Adobe After Effects CC 2017" to activate' -e 'tell application "Adobe After Effects CC 2017" to DoScriptFile "yourscript.jsx"' -e 'tell application "Adobe After Effects CC 2017" to quit' -e 'tell application "Adobe After Effects CC 2017" to activate'
and so on? you could actually include app.quit() in whatever script file you do, and then put something like above in a loop based on how many items you are rendering...
Copy link to clipboard
Copied
maybe you can use aerender.exe inside the application folder to finish your work
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more