-
Adding folder items to a comp
Hi,
I have a folder in my project with some footage imported by my script, and I would like to add that footage to a comp that has already been created called “myComp”. Trying to loop through the folder items as an array and add them to the comp that way, but my code doesn’t seem to be working. Can someone point out what I am doing wrong? Thanks in advance!!
var folderItems = targetFolder.getFiles();
for (var i = 0; i <folderItems.length; i++) {
myComp.layers.add(folderItems[i]);
}