// Fireworks JavaScript Command // Install by copying to Fireworks/Configuration/Commands/ // Aaron Beall - http://abeall.com var dom = fw.getDocumentDOM(); // document object var sel = new Array().concat(fw.selection); // saved selection function SelectFirstPoints() { if (!sel) return false; var subselect = fw.activeTool == 'Subselection'; for(var s in sel){ for(var c in sel[s].contours){ var con = sel[s].contours[c]; var n = con.nodes.length; //var isSel = !subselect; while(n--){ con.nodes[n].isSelectedPoint = n == 0; /*if(n>0){ if(con.nodes[n].isSelectedPoint) isSel = true; con.nodes[n].isSelectedPoint = false; }else{ con.nodes[n].isSelectedPoint = isSel; }*/ } } } if(fw.activeTool!='Subselection') fw.activeTool='Subselection'; return true; } SelectFirstPoints();