Cut or delete segments in all masters

Is there a way to cut or delete (opt-Delete) one segment in all masters of a font at once? If not, is there a way to do so by scripting?

Have a look at the Magic Remove plugin. I packaged that in a script (as part of the eweracs scripts) but I’m not sure I pushed that change.

Thank you Sebastian. The Magic Remove plugin deletes the segment and the two nodes that define it. I want to delete only the segment, leaving the nodes in place.

I did not see the script you mentioned in the eweracs scripts. Maybe you did not push it? :thinking:

Ah, I see. I’m not sure how to do that via a script. You want to open the path and remove the nodes between the first and last node (per path) of your selection.

If you use the Method Reporter mekkablue script, you can most probably find a fitting method in the GSPath or GSLayer classes. Then just use the path and nose indexes of your selection to get the desired nodes in the other layers.

I was actually thinking of a simple segment between two nodes, but your approach seems more useful. Anyway, I’ll have a look to the Method Reporter by @mekkablue. Thanks for the tip :slightly_smiling_face:

I could add it to the Magic Remover. You want to break the path open by removing the selected segments, right?

Exactly! That would be great!

Magic Remover version 1.3 is up. Hold down the Option key when you click the button, and it will break the path (like you do on a single master when you Opt-Delete a part of a path).

2 Likes

Thanks a lot, Rainer!!!

1 Like