• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Target items of Folder in After Effects via Script

New Here ,
Sep 18, 2020 Sep 18, 2020

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);
}

}

My structureMy structure

TOPICS
How to , Import and export , Scripting , User interface or workspaces

Views

174

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation