View Full Version : How to pass a Return char in XPresso?
cdesign 06-09-2007, 06:44 AM I am trying to create an Xpresso script that sets the 'Text' property of a MoGraph Text object. I am using a 'Condition' node to pass one of twenty different string values to the MoGraph text node. Each of the strings has one return character in them (they are two lines). The problem is that the Condition node only lets me enter a single line of text for each 'Input'. It won't seem to take a return character. How can I get around the single line limitation?
Is there some way to embed an ASCII value (13) in a string? Would a COFFEE node/script do this?
Thanks much. John
|
|
Right click on the string field name and select "Multi line String" from the user interface menu
Cheers
Björn
cdesign
06-09-2007, 12:59 PM
Well.. If I right-click on the 'text' field of the MoGraph object itself, I can select 'multi line string', however that doesn't solve the problem. I can already (by default) enter multiple lines of text in the MoGraph text object.
The problem I am having is setting that value through an Xpresso script. In other words, none of the Xpresso nodes seem to allow for a data type of 'multi line sting'. They allow 'string' but that seems to only accept a single line (i.e. no return characters). I was hoping that perhaps there's a way to embed a return char within a single line of text by passing an ascii value or some function.
FrankBerg
06-09-2007, 07:11 PM
Works fine here, the condition node passes a multi-line string like expected no need for a new-line char, it is auto detected.
do you have a simple example-file of what is not working for you.
fb
cdesign
06-10-2007, 03:36 AM
Thanks Frank and Srek. Newbie user error... I didn't realize that I had to right click on each of the Input parameters of the Condition node to set them to multi-line mode. Now that I have it works great! thanks again. John
CGTalk Moderation
06-10-2007, 03:36 AM
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-2012, Jelsoft Enterprises Ltd.