How do I specify a render location using scripting? i.e. how do I hard-code the "Output to:" folder?
For certain jobs I have specific render requirements, so I made a Script UI button that queues the selected comp and applies render settings and output modules…
var myItems = app.project.selection;
var comp, item, outputModule;
for (var i = 0; i < myItems.length; i ++){
if (! (myItems[i] instanceof CompItem)) continue;
comp = myItems[i];
item = app.project.renderQueue.items.add(comp);
outputModule = item.outputModule(1);
outputModule.applyTemplate("Apple ProRes 422 HQ 16 Bit");
item.applyTemplate("Best Settings - 16 Bit");
}
It works great. However, I want to add a custom render destination that renders into a folder, and the folder name needs to be the name of the AE project. I don't want to change my default render location, so I need to change the output in this script instead.
I'm on a Mac and the location I need is /Volumes/Renders/[name of project]/
Is this possible? And if so, how would I do modify my code to do that?
