?? please explain better, pictures are more helpful
1 person found this helpful
That should be doable. Find the leftmost anchor point, and check the distance to its two adjoining anchors. If either one is within a reasonably "small" distance, delete these two points and add a new a single point at the exact center of the two. Then the end point of the original shape has moved to the right by a single segment, so Repeat until no more likely candidates.
Before deleting two points, you could store their distance, and use this value later on to set the new line segment width.
> I need a script ...
You mean you want someone to *write* it for you?