save a message with pattrstorage?

Florent Ghys's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hello,
My patch uses VST plugins loaded into a few vst~ objects, and I need to save/recall which plugins are loaded.
So far I am saving integers that correspond to the plugin number in a umenu. Something like that:

This works great as long as the plugins installed on my computer don't change.
If I happen to instal another plugin or if I open my patch on another computer, the list changes, and the integers saved in pattrstorage don't correspond to the right plugins anymore.

So my question is: is there a way to save a message like "plug cool_plugin23.vst" in pattrstorage instead of an simple integer?
Or is there a workaround in order to be sure that pattstorage is actually recalling the right plugins?

Thanks.
Florent

leafcutter's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Yes you can do it by using pattrstorage to remember the content of the textedit object.
Here is a simple implementation:

Florent Ghys's icon

Thanks! this is awesome, exactly what I needed!
best
Florent

pdelges's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Messages can be stored in a pattr, depending on your needs a textedit object is not necessary:

Florent Ghys's icon

Thanks Patrick, this is even easier!

Sounds like autopattr doesn't see any message objects, while pattr does.
Thanks for the info

leafcutter's icon

Ahh, so that's what pattr is for.