Pattern dashed lines of variable length from ends of the line to middle

Hello Guys

Please tell me how can I get a variable dashed line pattern so that it decreases in length from the ends to the middle, and it would be possible to control the length and number of these segments?

if you mean using exact number input that defines precise lengths, it might become sort of difficult sort of very fast :slight_smile:

if instead you mean you want to have the control on proportions, this uses graphs to determine the proportional lengths of curve segments and the proportional lengths of the spaces between them

curve_and_spacing_segmentation.gh (21.4 KB)

you can chose the ratio of segments-fill with the slider on the top, then use the graphs to change the proportions (on Graph domain: 0 = curve start, 1 = curve end)


this for instance would be a setup where segment lengths decreases in the middle (A) while spacing is constant (B)


I’m also sure you can avoid using all those Remaps by taking advantage of the Curve [0, 1] Reparametrization, but it came out like that :slight_smile:

1 Like

Thank you, rays of gratitude :star_struck: