//lightwave collada exporter does not have the proper aspect ratio set //this script fixes the imported values for zoom //when imported zoom is based on horizontal, this fixes and converts to vertical //get aspect by horizontal FOV / vertical FOV from camera settings dialog in lightwave //select the layers to fix then run this script //is ok to pick non-camera layers, they will be ignored // // put script here for easy access -> C:\Program Files\Adobe\Adobe After Effects CS3\Support Files\Scripts // aspect = prompt("enter the aspect ratio","1.3333","Collada Lightwave Fix"); while(isNaN(aspect)) { aspect = prompt("enter the aspect ratio","1.3333","Collada Lightwave Fix"); } //testheight = 480; //testoldzoom = 512; //testangley = 2*Math.atan((0.5*testheight/testoldzoom)/aspect); //testnewzoom = testheight/(2*Math.tan(testangley*0.5)); var myactiveItem = app.project.activeItem; if(myactiveItem) { if(myactiveItem.typeName=="Composition") { height = myactiveItem.height; layerList = myactiveItem.selectedLayers; numSelLay = layerList.length; for(i=0;i