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