Now i got this:
But how to specify the output and settings?
{
var QTtemplate = "Alpha Only";
var activeItem = app.project.activeItem;
var sel = app.project.item(1);
if (sel != null && sel instanceof CompItem) {
var theRender = app.project.renderQueue.items.add(sel);
if (sel.height < 32) {
theRender.outputModules[1].applyTemplate(QTtemplate);
}
} else {
alert("Select the comp you want to render first");
}
}