Fan of creative technology, elearning, instructional design and a little geeky

Stray points removal in Illustrator and InDesign

Adobe Illustrator has had a Stray Anchor Points remover for some time. In Illustrator CS3, you can remove stray points by selecting Object > Path > Clean up… The Clean Up command allows for deletion of Stray Points, Empty Text Paths and Unpainted Objects. InDesign on the other hand doesn’t contain such a command.

How do we create strays?

What generates Stray Points? Well, you can simply click with the Pen Tool found in InDesign, Illustrator, Photoshop anywhere in your document, then choose another tool and… you’re left with a Stray point. A more common way for people to end up with Stray points in their documents – and that doesn’t necessarily need to be an Illustrator document – is through deletion of line segments, using the Direct Selection tool (Illustrator, InDesign, Photoshop).

Why does this happen? A line, straight or not, can not exist without two points, in fact the line segment is a connector between two anchor points.

Line segment – Closed path or closed path with 3 or more segments

Q: So what happens when we grab the Direct Selection tool and select a line segment on a closed path? Or when we select a line segment in the middle of an open path that contains at least 3 or more segments and press Delete?

A: The line segment is removed and the two points that were previously joined by this line segment stay behind and are joined to the remainder of the line segments with which they shared anchor points.
In other words all works as expected: A closed path turns into an open path, and single open path turns into two separate paths.

Line segment – End of path with 2 or more segments

Q: But what happens if the line segment we delete is the segment located at the either end of an open path?

01_select_line.png

A: In this case we’re left with one stray anchor point, simply because this happens to be a point that isn’t shared with a joining line-segment.

Q: So how can we prevent getting stray points?

A: There is an easier method to prevent the stray point from appearing when you want to remove a line segment positioned at the end of a path.

04_select_point.png

A: Instead of deleting the line segment itself, which leaves the orphaned point behind, select the end point of the path, then press delete. As the line segment can only exist as a connector between two points, the removal of its end point results in automatic removal of the line as well. And… NO strays!

Single line segment

Q: So what about deleting a single line segment I hear you say? Am I not going to be left with at least one stray point, even if I select an anchor point?

A: Well, that is true, but why use the Direct Selection tool at all? Unless you have a reason for wanting to retain at least one or two stray anchor points, just use the Selection tool to select and delete this line and its points.

Stray point deletion script for InDesign

Well, after all of this you’ll probably inherit artwork that still has stray points distributed throughout the document. In Illustrator, the Clean Up command will help out, but InDesign doesn’t have a Delete Stray Point or Clean Up command.   Dave Saunders has come to the rescue!

A very recent post — the reason I thought I’d write this one up — at the Adobe User 2 user forums, prompted Dave Saunders, InDesign script-writer extrordinair, to write two scripts for InDesign. One which locates stray points within a selection or entire document, the other simply removes stray points found.

Copy the text from this post into a new ExtendScript Toolkit file and save the file as “Delete Stray Points.jsx” into your InDesign Scripts Panel folder inside the Scripts folder located in the InDesign application folder on your system. You can even assign a Keyboard shortcut to the script if you think you’ll be using this script a lot.

Similar posts
  • Adobe InDesign and XML: A Reference Guide The following is a reference guide I have compiled over time for those of you who are looking at doing a little more with XML in InDesign (originally published Feb. 2011, last updated Feb 2018). If you have any extra information you’d like to see added to this guide, feel free to message me. Mapping XML tags to InDesign [...]
  • How to change the colour of bullet points in InDesig... A few weeks ago I recorded a short quick tip tutorial. InDesign’s Control panel, gives users a quick and easy way to format text as a bulleted list. Highlight the text, and click the Bulleted List button in the Paragraph Formatting Controls mode for the Control panel. This applies a universal bullet character as the [...]
  • How to create a tint for a colour in Adobe Illustrat... How can I make a tint for a colour in Adobe Illustrator? It’s a question I’m asked regularly by Illustrator users. There are two issues with the default settings when defining new colour swatches in Illustrator: When you apply the default colour swatches in Illustrator to your artwork, the swatch colour is not associated with the [...]
  • Creating a pop-up window in a PDF with Adobe InDesig... In the following YouTube tutorial, we’ll create an interactive PDF from Adobe InDesign, in which we click on a button, which in turn opens up a simple pop-up window containing a close-box. When the close-box is clicked the pop-up window disappears [...]
  • Illustrator CC (2014): Rectangle tool and Transform ... On June 18, Adobe released #CCNext. One of the applications updated in this release is Adobe Illustrator. We’re up to version 18 now with the Illustrator CC (2014) release. Renewed Transform panel and live shapes The renewed Transform panel contains a Rectangle Properties section that is active when you have a rectangle or rounded rectangle shape selected in [...]

3 Comments

  1. Wm. Wm.
    February 4, 2011    

    Thanks! A stray point was driving me nuts and couldn’t get rid of it.

  2. Cari Jansen Cari Jansen
    July 21, 2008    

    there are various font management applications that have auto-activation options for InDesign, it normally means you have to install a plug-in for InDesign that comes with the font management application.

    For Extensis Suitcase and another font management app I’ve used Insider Software – Font Agent Pro, installing the auto-activation for InDesign is optional.

    However, to be able to auto-activate fonts, these applications do need to know where to find them 🙂 In other words you’ll have to set-up font sets with unactivated fonts that can be activated when needed.

  3. Sebastian Sebastian
    July 21, 2008    

    Hi! I don´t know if this is the right place to post my question, but here it goes:

    Do you know if there´s a way (using scripts, I suposse) of auto-activate missing fonts in InDesign using Suitcase as font manager?

    Thank you very much!

    Sebastián
    Buenos Aires, Argentina

Leave a Reply

Your email address will not be published. Required fields are marked *