writing render queue text file

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
notawidget
Posts: 2
Joined: June 28th, 2006, 11:22 am

Okay. i'm trying to write a text file that lists a comps render queue settings. so far i've only found how to write the a comp in the render queue's comp settings.
Here's what i've got so far...


var logFile = new File(currFilePath + currFileNameOnly + ".txt");
logFile.open("w");
logFile.writeln("Adobe After Effects render log for project =" + "\" "+ currFileName + "\"" + "\n\n");

if (app.project.renderQueue.numItems > 0) {

for (i = 1; i <= app.project.renderQueue.numItems; ++i) {
//for/next loop goes through all Items
var curItem = app.project.renderQueue.item(i);


if (curItem.status == RQItemStatus.QUEUED) {
// output settings here
logFile.writeln("RenderQueue Item Number: " + i);
logFile.writeln("CompName: " + curItem.comp.name);
logFile.writeln("Quality: " + curItem.quality);
logFile.writeln("Resolution: " + curItem.outputModule.resolution);
logFile.writeln("Format:" + app.project.renderQueue.item(i).outputModules[1].format);
}
logFile.close();
}


the quality, resolution, and format return "undefined"
I'm trying grab the quality from the render queue render settings and the resolution and format info from the render queue output module set up, NOT from the comp settings. :cry: what am i doing wrong?
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

Those attributes don't appear to be accessible to scripting. They're not listed in the Scripting Guide.

Dan
Post Reply