3 Replies Latest reply on Jan 2, 2010 3:40 AM by Mylenium

    Automatically Splitting a Path into Multiple Segments

    ***Jake*** Level 1

      Is it possible to automatically split a path into a variable number of individual segments?

        • 1. Re: Automatically Splitting a Path into Multiple Segments
          Jacob Bugge MVP & Adobe Community Professional

          Jake,

           

          You may have a look at the Cut Paths At Selected Anchor Points button in the Control Panel, if you have CS3/4, or use the superior Split script by James, here: http://www.illustrationetc.com/AI_Javascripts/PathScripts.htm

           

          Both split paths at all Anchor Points, which is hopefully what you wish.

          • 2. Re: Automatically Splitting a Path into Multiple Segments
            JETalmage Level 6
            Is it possible to automatically split a path into a variable number of individual segments?

             

            The fly-in-the-ointment here is the operative phrase "variable number". The answer depends on what you mean by that.

             

            There are awkward workaround tricks for adding a given number of anchorpoints per segment to an existing path:

             

            1. Select the path.

            2. Filter>Distort>ZigZag. Size: 0. Ridges Per Segment: [as desired]. Points: Smooth.

             

            You can then follow that by either of the methods mentioned by Jacob, or by:

             

            3. Select>Object>DirectionHandles.

            4. Edit>Cut.

            5. Delete.

            6. Edit>PasteInFront.

             

            The possibly deal-breaking caveat is step 2. It can be used to add the desired number of segments per original segment, but that necessarily means you are limited to total numbers of segments that are divisible by the original number of segments. Plus, it results in (for practical purposes) same-length segments per original segment, but in no way guarantees same-length segments along the whole path.

             

            JET

            • 3. Re: Automatically Splitting a Path into Multiple Segments
              Mylenium Most Valuable Participant

              To expand on James' explanation: If you need regular segments, a workaround would be to use path text and type in a lot of underscores. By adjusting the baseline shift, you should be able to get an averaged representation of the path with regular segments. The segment length then wouild be controlled by the font size and font face, obviously. Not perfect, but better than dashes. Everything else would probably require a proper script that uses a curve fitting or triangulation algorithm to create straight edges from arbitrary shapes...

               

              Mylenium