Remove instances near the curve corners

Hi guys,
I’ve a geometry nodes question.
I’m doing a GN where I can distribute many instances of an object using a curve.
At the moment I’m stuck at the point where I can’t avoid to have instances also in the corners.
This is the situation and the nodes used.

I’ve tried with the “endpoint selection” node but in this way I have the reverse way I’d like to and I can’t understand how to “invert” the selection after the “endpoint” node.
Could you help me?

Add a “not” node after.
image

Another thing you can do is to use the trim curve node along with the Spline Length:
image

Good luck.

2 Likes

Thank you very much!
Works perfectly both solutions.
The second one is probably more useful and flexible.