I am new to illustrator scripting. And i need some help with a script i am writing.
I am wondering if there is a way to add/remove/redistribute anchor points on a compound shape so that there are evenly spaced anchors along the outline of that shape. This image might help illustrate.
I am aware of the "add anchor points" command. But that adds a new anchor at EVERY midpoint between two anchors. It doesn't smartly calculate where to add and where to avoid adding anchors. Does a script like this already exist? Is it even possible to do something like?
Any guidance is much appreciated.
I don't know, if there is a script exist which do this for every outline of every shape. But the following linked scripts do this for selected segments (#1). And script (#2) does change every path into an ellipse with a specified number of anchor points.
Go to s.h.page and have a look for the following two scripts
The best for you I think is:
--> divide (length)
(divides each selected segment into specified number) and the secondbest
(for turning every selected path into an oval which fits the width and the height of the path.
You can specify the number of the anchor points before the script modifies the paths.)
Is this right for you?