// Comps_to_PAL // March 2005 // // Byron Nash // Changes selected comps or all comps to PAL width, height, and pixel Aspect. { // create undo group app.beginUndoGroup("Comps to PAL"); //Set these variables to your desired comp size and rate var curWidth = 720; var curHeight = 576; var curRate = 25; var curAspect = 1.07; var projColl = proj.items;//list of items in project var compCount = 0; //used for counting how many comps we changed writeLn("====Comps to PAL=====Byron Nash======"); var selItems = app.project.selection;//set selected import items to an array if (selItems.length > 0){//check to see if anything is selected var myColl = app.project.selection;//if so the use the selection } else {//if not, use entire project contents var myColl = new Array(); for (j=0; j < projColl.length; j++){//add project list to an array myColl[j] = projColl[j+1]; } } for (i=0; i <= myColl.length; i++) {//loop through the project var curItem = myColl[i]; //set current item if (curItem instanceof CompItem) {//check for comp //setup comp variables curItem.width = curWidth; curItem.height = curHeight; curItem.frameRate = curRate; curItem.pixelAspect = curAspect; compCount++; //increment the count variable } } writeLn("Modified " + compCount + " Comps"); app.endUndoGroup(); }