Copy link to clipboard
Copied
Hello Adobe Community!
I wrote a Script that targets a Folder via the Folder's name. Now I want to get the solids, which are stored in the folder, and copy/send them to a Composition with the var newComp.
Further more I want to assign every one of these solids a Luma mask and send them to the bottom of the Comp.
An image of the structure in my Project and a code snippet is attached and I thank everyone who wants to help me !
Have a nice day
Nico
alphaMask.onClick = function(){
// Find Folder
var compFolder = null;
for (var i = 1; i <= app.project.numItems; i++){
if ((app.project.item(i) instanceof FolderItem) && (app.project.item(i).name == "Color")){
compFolder = app.project.item(i);
break;
}
}
if (compFolder == null) return;
if (compFolder != null){
alert(compFolder.length);
}
}
Have something to add?