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 // Measure the length of paths // Install by copying to Fireworks/Configuration/Commands/ // Run in Fireworks via the Commands menu // Aaron Beall 2008 - http://abeall.com // Version 1.0 /* TODO - make version that measure length between only selected points */ var dom = fw.getDocumentDOM(); var sel = [].concat(fw.selection); function MeasurePathLength(){ // require active document if (!dom) return false; // validate selection var paths = []; for(var s in sel){ if(sel[s] == '[object Path]'){ paths.push(sel[s]); } } if(!paths.length) return alert("This command requires a selection of at least one path."); // convert strokes to paths var conts, nodes, nod, nextNode; var dist, pt, prevPoint, BEZIER_STEPS = 100, DECIMAL_PLACES = 2; var str; for(var p in paths){ conts = []; for(var c in paths[p].contours){ conts[c] = 0; nodes = paths[p].contours[c].nodes; for(var n=0; n1?"Compund ":"")+"Path"))+": "; if(paths[p].contours.length>1){ for(var c=0; c