Skip to main content
This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
June 14, 2018

This simple example should find all the comps named "Comp 1":

var compName = "Comp 1";

var comps = [];

for (var i = 1; i <= app.project.numItems; i++){

  if ((app.project.item(i) instanceof CompItem) && (app.project.item(i).name == compName)){

    comps.push(app.project.item(i));

  }

}

alert(comps.length);

Dan

Participant
November 2, 2023

Hello,

Is it possible to do that just by selecting a comp and launch a script to find comps with the same name ?

(to find comps by name, you just have to use the search bar)

Thx

Philippe