After Effects ExtendScript Training: Ep. 10

June 09th 2012 08:00:29am

In this episode:

  • Build a custom function to collect all CompItem objects
  • Modify function to dynamically allow for choice of CompItem, FolderItem or FootageItem

UPDATED: 6/30/13: Made some corrections.

Welcome to episode 10 of the After Effects ExtendScript Training series. In this episode we will create a custom function that will allow us to easily retrieve specific types of project items like CompItems, FolderItems, or FootageItems. Learn how to set arguments for our function, which will allow us to pass outside information into our function.

Functions can be very dynamic and can help consolidate a series of coded tasks into one simple function that you can call in your code later on. Functions can be used more than once without having to type out all of the coded tasks each time. Functions will be a very powerful tool in your scripting arsenal.

Checkout more:
Free Function Friday Ep.6 – collectAllPrecomps
Free Function Friday Ep.28 – layersAtCurTime
Ikea Lack Photogrammetry Turntable Part 1
After Effects ExtendScript Training: Ep. 17 Part 3
Free Function Friday Complete Series