Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Explode and combine multiple paths at once

Explorer ,
Mar 30, 2009 Mar 30, 2009
L. S.,

In Vectorworks you have this great feature to divide or explode a polyline or polygon into multiple lines and arcs. These segments are split(?) at their vector points or anchor points. You can do this operation with multiple polys selected at once. You can take out some segments or adjust some of those. Then you can select all the divided parts and combine them. Polygons are then created out of these segments again according to shared vector points.

I use these features a lot and I was wondering if in Illustrator the same thing is possible with paths. Until now I only saw the scissors tool with which you have to point at every point subsequently and the same goes for the join tool.

Richard.
eh...James?
26.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
LEGEND ,
Mar 30, 2009 Mar 30, 2009
Illustrator only just recently (CS3, I think) gained a limited ability to split multiple paths at selected anchorPoints. It's as awkwardly-interfaced as most aspects of Illustrator. It's a button in the Control Panel concisely named "Cut Path At Selected Anchor Points" (deep breath).

If you don't see the button, it's because you have to select the point(s) you want to split with the (deep breath) Direct Selection Tool (white pointer). Illustrator's Control Panel can't decide if it's tool-based or selection-based, so it often hides the features you need for what you are doing.

If you still don't see the button, it's because you logically have all the anchorPoints of the path selected when you want to split all the points of a given path. This illogical abberation is because, despite Illustrator's insistence upon tedious multiple selection tools, it still is not smart enough to understand the difference between a path being selected as an object, as opposed to merely having all its anchorPoints selected.

The button does appear, however, in the "opposite" situation: if you "select the segment" (not the points) of a simple 2-point path. In that situation, the button appears, but of course it does nothing. But it's there, in case you want to do nothing.

So, as with most things in AI, if you want to cut all the anchorPoints of a single selected path, you have to come up with workarounds:

Select the path, then DEselect one anchorPoint. Now the button will appear. Then cut the other anchorPoint.

Or, use the workaround that pre-dates the new feature by many years: Use the Select>Object>DirectionHandles command. Then Cut. Then Delete. Then Paste In Front. That completely screwey routine probably needs some explanation:

The command says you are selecting "Direction Handles". Elsewhere, Illustrator's interface and documentation pretend that you can select "segments" independently of their anchorPoints. Of course, what really gets copied to the clipboard are individual 2-point paths (each including 2 anchorPoints, 2 handles, and the segment they describe), and that's what you get when you Paste thereafter. But when you do the Cut, the anchorPoints are "left behind", because they ostensibly were "not selected." That's why the Delete command in the workaround, before Paste In Front--to get rid of the stray points that are left behind when you copy them to the clipboard by selecting Cut. (Clear?)

Note that when you ostensibly "select the handles", the display is exactly the same as if you "direct selected" one "segment" with the (deep breath) Direct Selection Tool. In such a case, you often can't tell by looking which "segment" is selected. You just have to remember what you clicked or selected and with what tool or command.

As for joining multiple paths at once, Illustrator has not got around to that yet. (It only took 20 years to gain the above-described ability to cut multiple selected points.) Workarounds:

Use a 3rd-party plug-in. This assumes, of course, you can stomach the principle of paying exta above-and-beyond the bloated price of Illustrator for such basic functionality.

Or, use a free script. You are welcome to one or both of mine if you wish. JET_JoinNearest respects pre-existing outboard handles (if any). JET_JoinNearestStraight joins with straight segments.

Or, assuming the series of paths together visually describe an enclosed area, you can use the flood-fill feature (LivePaint) to convert the paths to a "LivePaint Group", use the LivePaint Bucket Tool to create a new closed path, then Expand and Ungroup the LivePaint Group to get back to normal basic paths.

Welcome to Illustrator.

JET
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 07, 2009 Apr 07, 2009

James,

You made me laugh through my sighs. At first just by reading your reply and then by subsequently trying the things you described. You gave more than I deserve.

I installed your JET-path scripts and the JET-split and JET-JoinNearest and those were what I was looking for.

I know about nothing about JAVA-script (I did try to read your script a little), but is it possible within your JET-package to develop a JoinNearest-alike command, which only connects all selected paths with shared points? I mean without adding connection lines, but still connecting all paths with shared points.

I guess it's not possible to assign a short-key to imported scripts in Illustrator? Is it possible to record/play them in the actions palette?

The DirectionHandles method is also interesting because you can short-key everything and it makes use of everyday routines like cut/copy/delete, but you are right completely.

Sometimes, with a compound path, depending on your shapes, you can have more than one openings in your (compound) path and still have a fill. Is it possible to hide any segment and keep your fill tracing the hidden segments? This is possible with overlapping zones in Live paint paths (as in the Olympic rings video on Adobe TV).

Can I bake you a cake?

Richard.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 08, 2009 Apr 08, 2009

I found this in the help files and this is the way I enter the JET-scripts I use:

Insert a nonrecordable menu command

1.             Choose Insert Menu Item from the Actions panel menu.

2.             Select the command from its menu, or begin typing the command name in the text box, and click Find. Then click OK.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 11, 2019 Jun 11, 2019

Jet thank you for your reply! The 'cut path at selected anchor points' is so annoying, the 'select>object>direction handles' works perfect and takes 1/1000th the time. Much appreciated, you are a life saver!

(working on product packaging templates from a China manufacturer that are not well made)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 11, 2019 Jun 11, 2019
LATEST

Wow, that's a 10 year blast from the past. Nevertheless, editing anchor points (such as splitting open paths at selected anchor points) still isn't quite as easy as it should be. Some functions (such as cutting open paths at selected anchor points) are available when selecting a path with the direct selection tool. Other features remain missing or hidden. And that forces users wanting an obvious, straight-forward approach to either buy third party Illustrator plug-ins, such as VectorScribe by Astute Graphics or just use rival drawing applications (and deal with trade-offs that come with using them).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines