Highlighted

Target items of Folder in After Effects via Script

New Here ,
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

40

Likes

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

Target items of Folder in After Effects via Script

New Here ,
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

41

Likes

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
Sep 18, 2020 0

Have something to add?

Join the conversation