Hey,
i am new to scripting and i try to make a script which adds comps that start with a specific name to the render queue.
For example: I would like to add all the comps that start with the name "ET_" to the render queue.
I created a for loop that goes throught the items in my project and i want to store these items in an array. That array should then be sent to the render queue. Please could you help me out, i am kind of stuck That's the code I have so far:
function renderItems(etNum) {
app.beginUndoGroup("Render Items");
var comps = [];
var et = [];
var itemName;
for(var i = 1; i<=app.project.numItems; i++) {
itemName = app.project.item(i).name;
if(app.ptoject.item(i) instanceof CompItem) {
comps.push(app.project.item(i));
}
//et checks
if(itemName.name() == "ET_*") {
et.push(app.project.item(i));
}
}
app.endUndoGroup();
}
Thanks a lot!