Delete not-extreme points?

I’m wondering if there is a way to delete all not-extreme points of a selected segment of the path.

Toshi has a script for it called Path > Delete Diagonal Nodes Between Extremes.

1 Like

It doesn’t seem to keep the shape :frowning:
upd. : my bad, it does keep the shape but it works with all paths in the glyph. Any way to modify it to work with selected nodes only?