//ColladaRoot.jsx // // Dec 5 2011 //Clinton Reese // // creates a parent null for an imported collada scene // good for rotating z-up files // var myactiveItem = app.project.activeItem; if(myactiveItem) { //Composition, Footage, or Folder if(myactiveItem.typeName=="Composition") { rootnull = myactiveItem.layers.addNull(); rootnull.threeDLayer = true; rootnull.Transform.Position.setValue([0,0,0]); rootnull.name="ColladaRoot"; //alert(rootnull.name); numlayers = myactiveItem.numLayers; for(i=2;i<=numlayers;i++) { if(myactiveItem.layer(i).parent==null ) myactiveItem.layer(i).parent=rootnull; } } }