Forums > Max For Live

saving parameters with the device, not the live_set.

January 18, 2013 | 3:22 pm

I have 5 umenu objects that I wish to save with the device, instead of the live_set. Each time I load my plug-in by dragging it in from the Finder, it doesn’t load with the most recent changes to the umenu, but instead recalls the parameters saved when I last saved the device in the Max Editor.
Is there any way to change this?


January 21, 2013 | 1:29 am

I have tried setting the initial value of the pattr object with the menu, with attribute ‘Restore Saved Value on Patcher Load’, although this does seem to work. The results seem to be unpredictable.

– Pasted Max Patch, click to expand. –


Lee
January 24, 2013 | 11:25 am

Having trouble saving stuff myself. Have added autopattr objects to my ui components, but they’re not reloaded when I open up the patch



Lee
January 24, 2013 | 11:26 am

I have a top level pattrstorage object with autorestore 1 and save mode 3 but no success


January 24, 2013 | 12:42 pm

try this…

– Pasted Max Patch, click to expand. –

January 24, 2013 | 3:32 pm

In general terms, changes to a device may only be made in the editor. When you’re in the MFL runtime, the device can not be modified. I haven’t looked at your device code, but I’m assuming you wish to update pattrstorage’s initial state.

A possible way for you to do something like this would be to save a separate pattrstorage JSON file in your file system.

Cheers

Andrew

Edit: Perhaps what you are looking for is a device preset?


January 29, 2013 | 8:09 pm

Saving the device as a device preset looks like the best solution! (pattr objects in parameter mode connected to umenu objects)
Thanks


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