I have a list of splines coming from an object, I want to group them by their height.
An example would be:
a list of splines:
0 spline 1 with height 0.25
1 spline 2 with height 0.35
2 spline 3 with height 0.45
3 spline 4 with height 0.25
4 spline 5 with height 0.35
5 spline 6 with height 0.65
The result I need is a list of lists:
0 [spline 1 with height 0.25, spline 4 with height 0.25]
1 [spline 2 with height 0.35, spline 5 with height 0.35]
2 [spline 3 with height 0.45]
3 [spline 6 with height 0.65]
Is there a way to do so using nodes or an expression is needed?