I realise that Lloyds BG Renderer is probably a better/different way to do this, but since it's a by product of a bigger script I'm writing (and since I'm very rarely in a position to actually
contribute anything to this forum) here's my script to add scenes to an aerender file that you specify. It's probably not coded very well and if you hit cancel on the "select render q location" dialogue it throws a li'l error ( to be fixed when i get the time). But I'm happy enough with it, especially when used with KeyEd Up.
Code:
{
var Qlocation = Folder.selectDialog ("Select Render Q Location");
if (Qlocation != null ) {
var document = new File(Qlocation.fsName + "/RenderQueue.cmd");
{
if(document.exists){ //If Render Queue already exists, alert
alert("Render Queue already exists, scene will be added to " + document.fsName +" using your current settings");
}else if(!document.exists){ //If it doesn't, create a brand new aerender queue and alert
alert("Created New Render Queue " + document.fsName);
}
}
}
var curProj = app.project;
var projPath = curProj.file.fsName;
var carReturn = "\r";
//Check if Queue already exists
{
if(document.exists){ //If it does, append more text to it
document.open("a");
document.write(carReturn + "aerender.exe -project \"" + projPath + "\" -mem_usage 60 120 -v ERRORS_AND_PROGRESS");
document.close();
}else if(!document.exists){ //If it doesn't, create a brand new document and add this text
document.open("w");
document.write("c:\r\rcd \"C:\\Program Files\\Adobe\\Adobe After Effects CS5\\Support Files\"");
document.write(carReturn + "aerender.exe -project \"" + projPath + "\" -mem_usage 60 120 -v ERRORS_AND_PROGRESS");
document.close();
}
alert("Added " + curProj.file.name + " to your Render Queue. You, my friend, are compositing your ass off today!!")
}
}
Thanks a million to Paul for all his help so far.
Ed