FORUMS: list search recent posts

Adding Folder Items to Comps with Scripts

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Danial Monson-Bergum
Adding Folder Items to Comps with Scripts
on Apr 24, 2020 at 8:38:39 pm
Last Edited By Danial Monson-Bergum on Apr 25, 2020 at 1:06:54 am

Hi all, thanks in advance!

Working on a virtual yearbook that requires 100+ photos be automatically added to their own comp. I found this for loop script:

var placeholder = app.project.item(2);
var images = app.project.item(3);

for(i = 1; i <= placeholder.numItems; i++){

I get an error when I try to run the script in After Effects. The dialogue I get is: "Function images.item is undefined." To the best of my knowledge, I'm adhering to code: Can someone show me my error? Here's how I have my project pane items organized:

Return to posts index

Walter Soyka
Re: Adding Folder Items to Comps with Scripts
on Apr 25, 2020 at 1:37:35 am

The folder "3 Images" is not item(3) -- it's item(6).

item(3) in this case refers to the third item down in the project panel, the precomp named "1."

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 >>
© 2020 All Rights Reserved