Split text into multiple lines

Does anyone know a script or a plugin allowing to automatically split a single line of text into multiple strings like a paragraph? I want to fit text into fixed width cells in a schedule.

Have a look a these:

text_fragment.gh (17.1 KB)


Hi Riccardo,

It’s not exactly what I meant. I want the words jump to a new line when the line reaches a certain number of characters. Like this text box I’m typing my comment in. For some unknown reason Rhino doesn’t come with this feature by default.

I threw this together quickly, but it’s so simple it will split up words, etc. Hope it helps

splitParagraphByWidth.gh (8.0 KB)

1 Like

text_fragment_2.gh (7.2 KB)

From here: https://codereview.stackexchange.com/questions/54697/convert-string-to-multiline-text
I’ve put a row_length “check” (set int to 20 if null or smaller than 1)
And edited to have 2 type of solutions: single multiline text or a list of texts.



That’s a great one! Thanks a lot!

amazing helped me a ton. should be parat of standard gh package