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


Support ProVideo Coalition
Shop with Filmtools Logo

Share Our Article

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…

Leave a Reply

1 Comment threads
1 Thread replies
Most reacted comment
Hottest comment thread
2 Comment authors
David TornoJoeyray Hall Recent comment authors
newest oldest most voted
Notify of
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:

Writing to file: