Page 1 of 1

OSC formatting question

Posted: 25 Nov 2014 06:29
by jdjd
Hey All!
Need some text formatting input… probably simple but i no get it

I have a Max patch that reads a directory, gets the filenames, does a little text formatting to it, sends out an OSC string to an array of text objects = Auto populate naming is working good

The pic shows what i am trying to get…

In the Lemur Editor, when you manually enter type into the text box in the object inspector, you can get a "new-line/carriage return" kind of action by putting a few spaces in between words…

When I send the messages via OSC you get the single line with the " … "

Is there a way I can pre-format this in the Max patch so that Lemur will be happy?
Or a way for Lemur itself to auto-split / newline for me as the osc comes in?

seems like it shoooould be easy, but is beyond current brain capacity

thanks!
j

Re: OSC formatting question

Posted: 25 Nov 2014 13:36
by Macciza
Hi
I would suggest either putting appropriate spaces in the text you are sending with suitable sized text boxes to match ..
Or splitting the text into two separate 'lines' that are sent and handled by two different text objects . . .
Cheers
MM

Re: OSC formatting question

Posted: 25 Nov 2014 15:29
by jdjd
Hey MM!
I would LOVE to put spaces, have tried things like this --> /Text1 @content ABCDEF GHIJK but when I do all OSC sends is the first part --> /Text1 @content ABCDEF
Is there a way to put an Ascii code or something so the OSC will pass it along and retain the spacebar? Have tried putting quotes around it and all kinds o things.. no luck...

If no way to do that will try a two line solution and just hard-chop the string in max

BTW I am stuck with the text box size/shape, (blech) the client likes the interface already the way it is, and they've been using it for 2 years and change for them is.... difficult. https://forum.liine.net/posting.php?mod ... =32&t=4651#

thanks!
jd

Re: OSC formatting question

Posted: 26 Nov 2014 02:11
by Macciza
Hi
Actually there is a simple solution, I didn't get to fire up Max to check the other day . . .

Max uses double quotes as the escape character in its message box i.e. "
So /Text1 @content "ABCDEF GHIJK" should work as you want . . .
Note that Lemur fonts are proportional not fixed, so word widths will vary which may cause some minor issues ....

Cheers

Re: OSC formatting question

Posted: 26 Nov 2014 17:54
by jdjd
Hey Macciza
Cool, will try that tonight... thanks mucho!
Will report back results
jd