/**
* Set the output file for all outputmodules for all items in the renderque
* https://github.com/ff6347/after-effects-script-snippets/blob/master/set-om-location.jsx
* @return {[type]} [description]
*/
var main = function() {
var p = app.project;
var rq = p.renderQueue; //定义渲染队列
var targetFolder = Folder.selectDialog('选择输出文件夹'); //定义输入文件夹
if (targetFolder === null) {
return;
}
//遍历
app.beginUndoGroup('Set OM output location');
for (var i = 1; i