Using Live Effects Functions for Illustrator (double paths)
Here (below) is my full script. The numbers are fine, but my original paths are each offset twice (!). I end up with two of everything.
Is there a remedy??
//@include LE_Functions.js
// units are points (pt)
// script works on selected items
semi_minor = 170
q = 8
t = 6
semi_major = q * t
var scope = app.activeDocument.selection.length ? app.activeDocument.selection : app.activeDocument.pageItems;
for (var i=0; i<scope.length; i++) {
w = i * t
p = (semi_major * semi_major) - (w * w)
y = (semi_minor/semi_major) * Math.sqrt(p)
kate = y - semi_minor
LE_OffsetPath(scope[i], {offset: kate, expandAppearance: true})
}
