As the title reads, I want to get an automatic line change on the text after a certain number of characters on my script on “wall material” that is shown in a tag.
I want the text that is too long to start below the previous line and in line with the letters and not the numbers.
Anyone have a suggestion?
A couple things to consider:
- This will work best with a monospace font. Otherwise character counts won’t equate to the same length and your overall widths may not align like you want.
- Breaking the line at a character length could break a word in half. Assuming you don’t want that, you’ll have to take into account word length as well.
- Using python to loop each string will make this much faster.
As for logical steps:
- Break down strings into words.
- Count characters per word (be sure to include the space between words).
- Determine number of line breaks per line (total string length / maximum line length).
- Adjust break point to end of previous word so as not to split words and include space for tab at beginning of new line.
- Rebuild string with new lines and tabs.
Start with that and see where you get. Again, I’d recommend python so that you can easily continue through each line character by character and word by word, but this is still possible with just nodes.
1 Like



