I'm trying to find a way to select every comp but the one with _assemble in the name and then also be able to select only the comp with _assemble in the name.
Code: Select all
function retrieveProjectItems(itemType){
var typeOptions = new Array("Composition", "Folder", "Footage");
for(var t = 0; t<3; t++){
if(itemType == typeOptions[t]){
var proj, itemTotal, curItem, itemArray;
itemAry = new Array();
proj = app.project;
itemTotal = proj.numItems;
for(var i = 1; i <= itemTotal; i++){
curItem = proj.item(i);
if(curItem.typeName == itemType){
itemAry[itemAry.length] = curItem;
}
}
return itemAry;
}
}
}
retrieveProjectItems("Composition");
var results = retrieveProjectItems("Composition");
for(var r=0; r<results.length; r++){
results[r];
Thanks