Strict Standards: Only variables should be passed by reference in /home/abeall/public_html/fireworks/download.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/abeall/public_html/fireworks/download.php:28) in /home/abeall/public_html/fireworks/download.php on line 44
// Fireworks JavaScript Command // Install by copying to Fireworks/Configuration/Commands/ // Aaron Beall 20082011 - http://abeall.com // Version 1.1 var dom = fw.getDocumentDOM(); var sel = [].concat(fw.selection); function KnifeOnPoints(){ // require active document if (!dom) return false; // validate selection var paths = []; function pathsIn(elems){ for(var e in elems){ if(elems[e] == '[object Path]') paths.push(elems[e]); if(elems[e] == '[object Group]') pathsIn(elems[e].elements) } } pathsIn(sel); if(!paths.length) return false; var nodes; for(var p = 0; p < paths.length; p++){ for(var c = 0; c < paths[p].contours.length; c++){ nodes = paths[p].contours[c].nodes; var nlen = nodes.length; for(var n = 0; n < nlen; n++){ if(nodes[n].isSelectedPoint || fw.activeTool != 'Subselection'){ dom.knifeElementsFromPoint({x:nodes[n].x,y:nodes[n].y},1); } } } } } KnifeOnPoints();