How to clean duplicated nodes in batch


#1

Hi!

I am doing a brush font, and my current issue is that I have duplicated nodes in some places, the ones that show up in red.
My question is: Is there a way to clean all those duplicated nodes? Can I select all the glyphs and apply a Script, for example?

Thank you!


#2

Use the menu Paths > Tidy up Paths (Shift-Option-Command-T). You can select multiple glyphs when selecting that menu option.


#3

Thanks, @composerjk I already did/tried this. While it change some things, it still does not remove the red dots.

PS: I realized they are not overlapping points, but nodes that are really close to each other.


#4

What do you have set in the grid settings?


#5

Grid Spacing: 0
Subdivision: 1


#6

I believe the red mark shows up when the nodes are under 1 unit of distance apart. That grid setup allows for fractional values for node locations. If the two nodes were part of a straight line beyond the nodes, then they would be tidied up.


#7

You can use the Delete Short Segments filter from Window > Plugin Manager.


#8

Or set the gird to 1 and run the Tidy up paths command. Setting the gird will not actually enforce it, just if you move nodes.


#9

Thanks guys! It finally worked with Delete Short Segments


#10

Hi guys, I’m trying to use the Delete Short Segments filter for same problem as described above (Overlapping red nodes on a highly textured design). However it doesn’t seem to be working. Any ideas?


#11

Tidying up does not work? Cmd Opt shift T.


#12

Correct ‘Tidy up paths’ does not work.

Grid spacing = 1 / Subdivision = 1 and I have also used ‘Round coordinates’ First. It has worked initially on some letters but not others. Refer to images:


#13

Can you send me the W?


#14

Sure — support at glyphsapp?


#15

I’ve sent the file to the email above. Please let me know if there is an alternate address.

Many thanks.


#16

The e-mail did not reach me. The one you mentioned here was fine, but as a spam protection measure please do not post cleartext e-mail addresses publicly.

You can also use a Forum DM.


#17

Ok, have re-sent via forum DM. Thanks.


#18

The “Tidy up paths” only removes very short line segments. The red dots also show up on short curve segments.


#19

So is there no way to batch clean duplicated nodes when they are curves?


#20

Rainers script could be adjusted to do that.