View Full Version : strings to text spline, how to generate new line?

04 April 2007, 07:38 PM
i've been doing some work in c4d with the text spline in xpresso.
i am adding together different strings and then sending them to the text spline but i am stuck at this one point.

is there any string equivalent of the enter key, so that i can dictate when there should be a new line?
i've tried doing the ascii '(chr)13' but can't get it going.


04 April 2007, 08:06 PM
I seem to recall that \n will do the trick.

04 April 2007, 08:08 PM
check the file, i would do it this way :)

ahh per \n, nice to know =)

04 April 2007, 08:28 PM
I seem to recall that \n will do the trick.

So if I am using a constant in string mode, and I want to set a new line I could just use \n?
\n didn't work for me instead the characters just showed up in the text spline....

04 April 2007, 08:53 PM
you have to add it using a coffee node, i.e. the coffee node just adds "\n" to the existing string.

04 April 2007, 09:28 PM
var a = "got it \n thank you";

result = a;

04 April 2007, 05:18 PM
Try stradd( STRING );

this works :)

CGTalk Moderation
04 April 2007, 05:18 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.