View Full Version : strings to text spline, how to generate new line?
danv83 04-02-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.
thanks~
|
|
Per-Anders
04-02-2007, 08:06 PM
I seem to recall that \n will do the trick.
sandidolsak
04-02-2007, 08:08 PM
check the file, i would do it this way :)
ahh per \n, nice to know =)
danv83
04-02-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....
Per-Anders
04-02-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.
danv83
04-02-2007, 09:28 PM
main()
{
var a = "got it \n thank you";
result = a;
}
donelgreeko
04-15-2007, 05:18 PM
Try stradd( STRING );
this works :)
CGTalk Moderation
04-15-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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.