Mobile app version of vmapp.org
Login or Join
Hamm6457569

: Divide a path into equally parts I'm looking a way or tool to divide a spline or path in equal parts, or, what is the same, equidistant points (anchors). This is a very common question, but

@Hamm6457569

Posted in: #AdobeIllustrator #IllustratorScripting

I'm looking a way or tool to divide a spline or path in equal parts, or, what is the same, equidistant points (anchors).

This is a very common question, but i haven't found an answer. Also, is pretty simple to do by a script, but there's none. Is possible that i haven't searched well, but i'll be glad if someone knows the solution to this.

Autocad has a command (DIVIDE) to do what i ask:
goo.gl/swh2uj goo.gl/ymfUK3
Thanks!

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamm6457569

2 Comments

Sorted by latest first Latest Oldest Best

 

@YK2262411

To divide any path to any equal segments:

1- draw a short vertical line

2- with that vertical line create a pattern brush

3- select a copy of the path u want to divide

4- apply the pattern brush u created

5- open that pattern brush option

6- make sure preview is ticked, and stretch to fit is ticked

7- in the spacing option keep increasing the space

until the line have divided the path into the number of segment desired.

8- done!

10% popularity Vote Up Vote Down


 

@Yeniel278

Hiroyuki Sato has a script called divide that does just this. It works on one segment. In fact its quite hard to do this over many segments without having extra points (the requirement of x segments and original shape is are often mutually exclusive).

You can also do this manually (this would work even over multi segment curves):


first read the length of the path form document info palette (see here). *
then draw a straight line that's this length divided by the number of spans you need. (alt click when using line tool) *
Copy n times the spans after each other (move one with copy and hit ctrl + d)
make an art bursh out of the segments
apply to curve and expand


Alternatively you can do this with curve dashing.



Image 1: A multi point curve split 3 ways by equal length manually using described method.

* you can also do this without measuring by using the stretch to length option but its not always as accurate.

Addendum

Mr Sato has some other script that do the same thing on his guithub page. The break dashes script can easily be modified to do this.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme