Multiline input and spline text

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  02 February 2009
Multiline input and spline text

Hey hopefully quick question here someone can help me with.

I have a simple script for automating a simple text input for a project.
I have a multi line edit text box for entering text. When the user presses create the text in there is made a spline text.

The problem is if they put in two lines in the multi line edit text, it still comes out as one line in the spline text. Is there anyway to make it recognize that there's a line break or something?

  02 February 2009

rollout roll_test "test" width:400 height:100 (
	edittext edt_text "" width:300 height:50
	button btn_create "create"
	on btn_create pressed do (
		text text:(replace_LF_with_CRLF edt_text.text)
	on roll_test open do ( edt_text.text = "Hello\r\nWorld" )
CreateDialog roll_test

'replace_LF_with_CRLF' was introduced in 3ds Max 2008.
  02 February 2009
Ah Brilliant
  02 February 2009
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:32 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.