Mar 10, 2010 at 2:16am
I have run into a problem with messages in Max.
How do I remove the spaces between items in a message?
1 2 9
I understand prepend and append, but these always leave spaces between items in a message so it acts like an array. This is usually handy, but now I am attempting to format text to display w/ jit.gl.text3d. The text displays great, except there is a space between every letter. Is there a way to prepend and append items without spaces?
I am attempting to make a word by having the use type in text with a number pad, kind of like on a cellphone. I have it working, but when someone types their name it just appends each letter to the message box. EXAMPLE:
Any help would be greatly appreciated.
Code is below.
– Pasted Max Patch, click to expand. –
Copy all of the following text.Then, in Max, select New From Clipboard.
Mar 10, 2010 at 2:38am
look to [sprintf], it’s not limited to making spaces between each letter. [message] auto-formats them into lists, which is good for other uses (mainly with numbers, but symbols too). [sprintf] is essential in a lot of situations and is a good one to know.
Mar 10, 2010 at 4:01am
seejayjames, you are awesome. thank you!
You must be logged in to reply to this topic.