Learn How to Write After Effects Scripts
After Effects scripts are coded tools to automate processes that would be too tedious to do manually, such as bulk renaming layers, shifting certain shape layers, importing text from a spreadsheet file, or organizing your project structure. In essence, scripts can do the manual tasks you can do, except faster. It cannot do things you cannot do yourself, (plugins, which are basically individual software within After Effects, can do this). In this article, I will point you to all the resources you’ll need to get started with scripting for Adobe products, specifically After Effects.
Update: A lot of developers have been linking to this article, so I’ve taken the liberty to update it frequently when new resources are available.
First off, there aren’t that many resources out there that take you from the beginning to the end of AE scripting. Most of the information on scripting are scattered throughout many sites, threads, and people. Luckily for us, there are three full-blown courses that actually take you through the steps of learning AE scripting: After Effects ExtendScript Training (free) by David Torno, Introduction to After Effects Scripting (paid via fxphd) by Lloyd Alvarez, and Scripting with After Effects (paid via fxphd) by Mathias Möhl.
You’ll need the official After Effects Scripting Guide, which will give you most of properties, methods, and information you’ll need to script for AE. You’ll also find Peter Kahrel’s ScriptUI for Dummies very useful for building the user interface of your scripts. Lastly, I did an introduction to AE scripting presentation for Adobe, where I give a crash course on scripting and provide pretty useful reference code for the UI.
The rest of the information you’re going to find is through scavenging forum threads such as CreativeCow and Adobe’s AE scripting forum. Jeff Almasol’s redefinery site has a great collection of AE scripting basics and example scripts as well. Jeff also compiled a nice chart of AE matchnames that you will reference to frequently when writing your scripts to apply properties. Another great forum dedicated to scripting is AEnhancers, they have a lot of very skilled developers there to help you. Lastly, the famous Dan Ebberts’ MotionScript is a great place to pick up some scripting and expression basics.
8 thoughts on “Learn How to Write After Effects Scripts”
Thank you very much for writing this article. I will start watching video tutorial by David Torno
Anytime man, glad you found the article useful!
I have also done a lot of AE scripting lately. However just want to say thank you for the article. I think your article can be a very good resource for people who want to learn AE scripting. I see a lot of good information in the article!
Currently I am working on a new script. So I thought I would share some of the sites I use most for research:
Thanks for the feedback Jesper, and really great find on those resources you provided!
Hi bro! I m a musiciam too play drums and sing, thank you very much for all you doing here , very useful scrits and tutorials….I“m graduate in multimidia production here in Brazil and love after effects…just want to say congratulations anh thank you! Wesmaldonado@gmail.com
I am working on my first script. The script is a GUI toolbar that I would like to open every time I run AE. What I’ve done is that i have docked my script to the side in AE, however every time I run AE, the script needs to be relaunched from the window menu to work. I see that you have fixed this in your InstaFilm script. Would you please help me out with my problem?
I didn’t “fix” anything in InstaFilm in regards to this issue. If you successfully built a UI that you’re able to dock in AE, you’re probably doing it right.
If I’m correct, this isn’t really a script issue and is more of an After Effects issue. AE remembers the layouts/panels that are opened upon closing and relaunches them. Does the problem exist if you dock other new panels? If so, try saving your layout as a template.
can you put example or tutorial step by step how write script in after effects