The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

Show your WorkFrom the old forum

Multi Line Strings

3 replies Last reply

  1. Sometimes I need to label my visuals with strings from cvs files. This can be frustrating when the strings are long, and need to be broken over multiple lines.

    Previously I would just write out the string to include line breaks, but that was inefficient really. So I have written a recursive function that takes a user string and an integer length and returns a string with line breaks.

    It seems to work nicely. If anyone has any comments/better ideas for implementing this please comment.

    Thanks :-)

    Rory

    Copy link
  2. Rory,

    How is this different from simply setting the width parameter in the text path node? (See attached screenshot.)

    I'm probably missing something. If so, could you attach your nodebox file so I could play with it myself?

    Copy link
  3. Wow, I'm so dim sometimes. My first thought is always just to try and reinvent the wheel, when the NodeBox team have done a pretty good job of inventing it for us....

    feeling bashful

    Copy link
  4. No prob. The same thing happens to me all the time. There is a lot of subtlety to NodeBox and little documentation to help us grasp it. These forum discussions are the best way we have to bring all those hidden features to light.

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply