-
Adding Folder Items to Comps with Scripts
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: https://stackoverflow.com/questions/54561929/insert-image-in-composition-with-adobe-effect-script
var placeholder = app.project.item(2);
var images = app.project.item(3);for(i = 1; i <= placeholder.numItems; i++){
placeholder.item(i).layers.add(images.item(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: https://docs.aenhancers.com/items/folderitem/#folderitem-item. Can someone show me my error? Here’s how I have my project pane items organized:
