Forums > MaxMSP

Help with saving user selections in standalone…

October 9, 2010 | 9:48 pm

I have written a patch to be used in standalone mode that has 16 umenu’s in it. What i’m trying to do is make it so when running in standalone, you can save the state of all the umenu’s, and recall the state the next time the patch is opened.

I’m still pretty new to max, so thanks in advance for your help.


October 11, 2010 | 2:50 am

Take a look at the preset object and/or the pattr objects. You could build an "autosave" function where a closebang causes the umenu choice to be written to a preset and then a loadbang to select that preset each time.


October 11, 2010 | 2:49 pm

Thank you very much. I’ll see if i can figure out how to do that.


October 11, 2010 | 6:52 pm

Managed to just use a preset object with write and read. Works great.


October 25, 2010 | 3:50 am

I’m looking at doing something very similar, but I would also like to do this with some text entries. (My project uses a patch that can send emails, and it would be nice if the user didn’t have to retype email/password/message stuff) It doesn’t seem like the pattr object will save text, though.



EMV
October 25, 2010 | 9:01 am

Check out [coll] and [text] if you want to save text to a file, or [pattrstorage] with a [textedit]


Viewing 6 posts - 1 through 6 (of 6 total)