<p>You could achieve a certain automation by creating precomps for each clip. Then, drag every alternative file into each precomp and just stack them on top of each other. Now, apply the motion effect (the zooms etc.) to the precomps instead of the footage directly. That way, you can just hide the top layer to that the next image is visible, on which the animation will automatically be applied since it sits in the same precomp you animated before. Alternatively, to make the process even easier, you could script an expression that looks at the index of each layer in your precomp and hides every first layer for every comp, or every first and second, etc. etc. When it comes to the scripting of it though I must admit that this would require a few hours of thinking on my own, so maybe someone smarter can help you with that :D</p>

CC BY-SA 4.0
2019-06-29T00:46:16.213Z
Thanks a ton for your answer, Florian! Here's a low-tech solution that I've been thinking of,:
- For video 1, I create a well-organized folder with 2 subfolders named "raw footage" and "image"
- "Raw footage" has all my video files, of the right duration (10s), named 1.mp4, 2.mp4... 50.mp4. Image has 1.jpeg ... 30.jpeg.
- I create video-1.aep making sure it uses directly the source files.
- Then for video-2, I copy-paste the whole folder, replace all the XX.mp4 and XX.jpeg by the second set of assets named the same way. Then I manually replace the text (no big deal). Does that seem stupid?
Nicolas Telmaut
CC BY-SA 4.0
2019-06-27T15:49:53.813Z
2019-06-27T15:49:53.813Z
Florian Claaßen
<p>I am tasked to produce ~100 videos of 10 minutes in After Effects. The videos will later be commented by voice, and I am tasked only to make the "motion" part.</p>

<p>Each video use:</p>

<ul>
<li>about 30 "image" scenes (5s): an image is being slowly zoomed in</li>
<li>about 50 "footage" scenes (10s): a footage is being shown for 10s</li>
<li>A few other misc. animations (intro and conclusion with logo)</li>
</ul>

<p>In each new video, I need to change:</p>

<ul>
<li>The 30 images </li>
<li>The 50 footages (I will be given links from Youtube along with the timestamp like "0:16 to 0:26")</li>
<li>A limited amount of text, here and there</li>
</ul>

<p>I plan to make the template first, and <strong>I was wondering if you guys knew a smart way to program each video</strong> (ie auto-replace the 30 images, the 50 footages and the predefined text, then build and go on to the next), a bit like "mass-mailing" for instance.</p>

<p>They say in programming, "if you have to do it more than 3 times, program it"... I think 100 applies! However, being unfamiliar with After Effects, I do not know where to begin! Guidance will be much appreciated.</p>

<after-effects><after-effects-scripting>
Automate video production with After Effects CC
Nicolas Telmaut
# Automate video production with After Effects CC

(Asked by: username_0 on 2019-06-27)

I am tasked to produce ~100 videos of 10 minutes in After Effects. The videos will later be commented by voice, and I am tasked only to make the "motion" part.

Each video use:

* about 30 "image" scenes (5s): an image is being slowly zoomed in
* about 50 "footage" scenes (10s): a footage is being shown for 10s
* A few other misc. animations (intro and conclusion with logo)

In each new video, I need to change:

* The 30 images
* The 50 footages (I will be given links from Youtube along with the timestamp like "0:16 to 0:26")
* A limited amount of text, here and there

I plan to make the template first, and **I was wondering if you guys knew a smart way to program each video** (ie auto-replace the 30 images, the 50 footages and the predefined text, then build and go on to the next), a bit like "mass-mailing" for instance.

They say in programming, "if you have to do it more than 3 times, program it"... I think 100 applies! However, being unfamiliar with After Effects, I do not know where to begin! Guidance will be much appreciated.

**Tags:** after-effects, after-effects-scripting


---

## 1 answers

### Answer by username_1 on 2019-06-27. Score: 0

You could achieve a certain automation by creating precomps for each clip. Then, drag every alternative file into each precomp and just stack them on top of each other. Now, apply the motion effect (the zooms etc.) to the precomps instead of the footage directly. That way, you can just hide the top layer to that the next image is visible, on which the animation will automatically be applied since it sits in the same precomp you animated before. Alternatively, to make the process even easier, you could script an expression that looks at the index of each layer in your precomp and hides every first layer for every comp, or every first and second, etc. etc. When it comes to the scripting of it though I must admit that this would require a few hours of thinking on my own, so maybe someone smarter can help you with that :D

> **Comments:**
> **username_0**: Thanks a ton for your answer, Florian! Here's a low-tech solution that I've been thinking of,: - For video 1, I create a well-organized folder with 2 subfolders named "raw footage" and "image" - "Raw footage" has all my video files, of the right duration (10s), named 1.mp4, 2.mp4... 50.mp4. Image has 1.jpeg ... 30.jpeg. - I create video-1.aep making sure it uses directly the source files. - Then for video-2, I copy-paste the whole folder, replace all the XX.mp4 and XX.jpeg by the second set of assets named the same way. Then I manually replace the text (no big deal). Does that seem stupid?  

---

