outputModule new File help
Posted: October 9th, 2008, 9:48 pm
Hi I am making a little script to automate making MOVs from AVIs and also to have the new file be saved to the location of the original. Everything seems to be working fine except on the last line I get an error. Anyone know what I'm doing wrong?
Thanks
Pete
Code: Select all
var theDuration = (app.project.item(1).duration);
var theWidth = (app.project.item(1).width);
var theHeight = (app.project.item(1).height);
var theName = (app.project.item(1).name);
var thePixelAspect = (app.project.item(1).pixelAspect);
var theFrameRate = (app.project.item(1).frameRate);
var theFileFolder = (app.project.item(1).file.path);
var theFileName = (app.project.item(1).name.toString());
var theComp = app.project.items.addComp(theName,theWidth,theHeight,thePixelAspect,theDuration,theFrameRate);
var theFileNameNoExt = (theFileName.substring(0, theFileName.length-4));
var theRQItem = app.project.renderQueue.items.add(theComp);
var theRQItem.outputModule(1).file = new File(theFileFolder + theFileNameNoExt + "_r.mov");
Thanks
Pete