Advanced Scripting for After Effects, Part 1

Taught by

Course Number:
AFX303
Software Version:
CC 2017 
Original Run Date:
January 2017 
Duration:
4 hours 55 minutes 
mograph
pipeline
You already have some experience with scripting in After Effects (or attended the Beginner Scripting Course AFX226)? Then this course will take your scripting work to the next level! In the course, scripting expert Mathias Möhl will focus on three aspects: scripting tools, clean code and hands-on examples.

# Scripting Tools #
Learn how to use the distributed version control system git that turns your code into a time machine in which you can track changes, access previous version of your code and collaborate with other team members. Also, learn how to configure the Atom text editor for After Effects scripting to turn it into a very powerful alternative for ExtendScript Toolkit (ESTK). The best of it: Both git and Atom are not just highly professional software development tools, but also available free.

# Clean Code #
The larger your scripting projects become, the more important it is to write clean code, that consists of independent, modular and reusable code blocks. In this course you learn how to write such clean code and how to create your own library of reusable code snippets. To achieve this goal, you also learn how to use functions effectively and how to use the Module and Constructor patterns.

# Hands-on Example #
All the concepts mentioned above are explained based on hands-on After Effects scripting examples. You learn, for example, how to embed images for the user interface of a script directly in the code and how to read data from a spreadsheet.

Mathias Möhl is cofounder of mamoworld.com, a company with a strong focus on the development of scripts and other extensions for After Effects and Premiere Pro. His most popular developments comprise the After Effects scripts MochaImport+, iExpressions and Auto Lip-Sync as well as BeatEdit for Premiere Pro. Mathias is also an experienced trainer. He released more than 100 free video tutorials on mamoworld.com and has been invited to present at events like Animago and the After Effects World Conference. In an earlier life, Mathias did a PhD in Computer Science (which got the top rating “summa cum laude”) and as a researcher in Bioinformatics, he published more than 15 articles in international, scientific conferences and journals.
 
Advanced Scripting for After Effects, Part 1
Watch our overview of the course

Class Listing

Class 1: Configuring the Atom text editor

We start by configuring the Atom text editor for After Effects scripting. We configure Atom such that it does proper syntax highlight for jsx files and configure a keyboard shortcut that executes the After Effect script directly from inside Atom. Also, you get a first overview of the git version control system.

Class 2: Practical experience with git

Here you get some first practical experience with git and learn how to access previous versions of your scripting code with it. You also learn how to add icon buttons to the user interface of a script.

Class 3: Embed binary files

In this class Mathias explains how to embed binary files - like the images of icon buttons - directly in your code. You also learn how to make your code more modular by using functions effectively.

Class 4: Use the embedded binary data

In this class we cover how to use the embedded binary data we created in the previous class. You also learn how to use tags in git to label important points in time in your development. Furthermore, you learn how to use exceptions in JavaScript to do proper error handling.

Class 5: The Module pattern

Time to cleanup your code: Today we cover the Module pattern which is a key concept for modular and reusable code. You also learn how to execute command line calls from a script, how to open an URL in the default browser and how to create snippets in Atom.

Class 6: Writing a function that reads data from a spreadsh

Reading data from a spreadsheet is useful in many scenarios where After Effects should be used in an automated way. In this class we start writing a function that reads data from a spreadsheet. We also cover a good habit how to deal with optional arguments of functions.

Class 7: Finish the spreadsheet parser

In this class we finish the spreadsheet parser we started in the previous class. You also gain some hands-on experience in debugging your code with ExtendScript Toolkit.

Class 8: The Constructor pattern

In this class we cover the Constructor pattern which allows you to create objects in the spirit of Object Oriented Languages like Java or C++. Like the Module pattern, this is a key concept for clean, reusable code.