FORUMS: list search recent posts

AE Script for Importing Assets and Creating Comps based on filenames

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ashley Bryan
AE Script for Importing Assets and Creating Comps based on filenames
on Apr 30, 2016 at 12:23:02 pm

Hello, I am looking to figure out how a script that could be created to do the following in Adobe After Effects:

Say I have multiple png files in pairs and one folder, to be put into seperate compositions, a background layer, and a text layer to go above the background layer, like so:

AP15_00001.png
AP15_00001_BACKGROUND.png
AP15_00002.png
AP15_00002_BACKGROUND.png
AP15_00003.png
AP15_00003_BACKGROUND.png
...ect....ect...

I want to be able to find a way to import these pngs, and create a 15-second (or another length to be applied across all) composition for each pair, so here in this case three compositions:

AP15_00001 (Comp 1)
AP15_00002 (Comp 2)
AP15_00003 (Comp 3)
...ect...ect...

and inside each composition the text layer and the background layer:

AP15_00001 (Comp)
AP15_00001.png (text layer)
AP15_00001_BACKGROUND.png (background layer)

Whilst the naming will be different I'll make the end format of the pngs the same, the text layer will be just the name of the stockcode, and the bg layer will have _BACKGROUND at the end.

Is there a way that this can be automated using a script?

Thanks


Return to posts index

Dave LaRonde
Re: AE Script for Importing Assets and Creating Comps based on filenames
on Apr 30, 2016 at 3:31:05 pm

Not that I know of. The problem -- image sequences have no inherent frame rate.

Dave LaRonde
Promotion Producer
KGAN (CBS) & KFXA (Fox) Cedar Rapids, IA


Return to posts index

Walter Soyka
Re: AE Script for Importing Assets and Creating Comps based on filenames
on May 1, 2016 at 10:34:16 am

Yes, it's totally possible to do this with scripting, but as Dave notes, I doubt that one exists that does specifically what you want.

If you're interesting in getting started with scripting, check out the AE CS6 Scripting Guide (still valid today):
http://blogs.adobe.com/aftereffects/files/2012/06/After-Effects-CS6-Scripti...

This developer page also lists the addenda to the that guide since CS6:
http://www.adobe.com/devnet/aftereffects.html

Check out the sample script Smart Import.jsx that ships with Ae as a starting point.

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]