// ShowRedundantVertices.jsx // Dec 5 2011 // After Effects Script //Clinton Reese // /* AECollada imports repeating vertices this script isolates the repeats by shying all the other layers */ var myactiveItem = app.project.activeItem; if(myactiveItem) { //Composition, Footage, or Folder if(myactiveItem.typeName=="Composition") { numlayers = myactiveItem.numLayers; // //shy all layers that are not vertices // for(i=1;i<=numlayers;i++) { myname = myactiveItem.layer(i).name; matchpos = myname.search("_F_.+V$"); if(matchpos == -1) myactiveItem.layer(i).shy=true; } //make list of unique vertex layers layerindexlist = new Array(); listindex = 0; for(i=1;i<=numlayers;i++) { curlayer = myactiveItem.layer(i); myname = myactiveItem.layer(i).name; matchpos = myname.search("_F_.+V$"); if(matchpos == -1) continue; if(listindex==0) { layerindexlist[listindex] = i; listindex++; myactiveItem.layer(i).shy=true; //savedpos = myactiveItem.layer(i).Transform.Position; //alert(savedpos.value[0]); continue; } curpos = myactiveItem.layer(i).Transform.Position.value; foundinlist = false; for(j=0;j