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/ // Run in Fireworks via the Commands menu // Aaron Beall - http://abeall.com // Version 1.0 var dom = fw.selection ? fw.getDocumentDOM() : false; // document object var sel = new Array().concat(fw.selection); function RoughenPaths() { // require active document if (!sel.length) return false; var paths = []; for(var s in sel){ if(sel[s].contours) paths.push(sel[s]); } if(!paths.length) return false; var amount = prompt('Amount:', (fw.RoughenPaths_amount || 5)); if(amount == null || isNaN(amount)) return; amount = Number(amount); fw.RoughenPaths_amount = amount; for(var p = 0; p < paths.length; p++){ for(var c = 0; c < paths[p].contours.length; c++){ var nlen = paths[p].contours[c].nodes.length; for(var n = 0; n < nlen; n++){ var node = paths[p].contours[c].nodes[n]; var x = Math.random() * amount-Math.random() * amount; var y = Math.random() * amount-Math.random() * amount; node.x += x; node.predX += x; node.succX += x; node.y += y; node.predY += y; node.succY += y; } } } return true; } RoughenPaths();