After Effects ExtendScript Training: Ep. 6

ExtendScript Script Writing Training

Welcome to episode 6 of the After Effects ExtendScript Training series. This week we will be learning to collect data from multiple assets into an Array() via a loop. We are also going to learn how to set various values of comps, layers and properties via ExtendScript.

If you have missed the last few episodes you can find them here:

Episode 1 (Intro)

Episode 2 (Javascript Basics p1)

Episode 3 (Javascript Basics p2)

Episode 4 (After Effects Object Model structure overview / Script Preparation and development tips / Single Item Access of various project items, comps and layers)

Episode 5 (Access Renderqueue items, output modules and file paths / Multiple item access of project items, comps and layers / Batch change all renderqueue items file paths)

In this episode:
– Collecting data into an Array()
– Changing values
– Various tips

 


David Torno

David Torno is a Visual Effects professional based in Los Angeles, California. His work over the years has included commercials, feature films, music videos, and multimedia projects. During his free time, David enjoys expanding his knowledge in Visual Effects by learning new softwares and techniques that are being used. Along the way he also contributes to the visual effects community by offering helpful tools, and tutorials that creative professionals around the world can benefit from.

Leave a Reply

2 Comments on "After Effects ExtendScript Training: Ep. 6"

Notify of
avatar
Sort by:   newest | oldest | most voted
Joeyray Hall
Joeyray Hall

So I have to ask; how do you save the data collected in your array to a file for use elsewhere?
(i.e. I collect the data from a comp and then save out to a txt or exl file and use the data from the array to setup another comp later not associated with the original project.)

David Torno

Hi Joeyray, this is a bit more complicated to explain in a comment, but these links should shed some light on some of the process. You basically have to format your data in a way that when you read it back in you can convert it easily enough back into code. JSON is usually best for these tasks, but way beyond explaining here.

Reading an external file:
https://www.provideocoalition.com/after-effects-extendscript-training-ep-16/

Writing to file:
https://forums.adobe.com/thread/1936151

wpDiscuz
PVC Logo
PVC App Demo

Now Available in the App Store

Get access to our latest and featured articles from your favorite authors, wherever you are, directly on your phone!

  • Clean and Easy to Read
  • Blazing Fast Notifications for New Articles
  • Free Tuesday Webinar Access
Apple App Store
Google App Store
Get your FREE Search Bins Project File!
Want Us to Remind You?
Enter your email and subscribe!
Get Access!
Please enter your email address to view our free live webinar!
*you will be added to the ProVideoCoalition.com newsletter and if you’re already signed up, it won’t send you duplicate e-mails