strange behavior of pattrstorage

i.m.klif's icon

Hi,

Im getting really strange behavior from pattrstorage with umenu (same happens to numboxes, etc)

I enclosed a simple patch that demonstrates this behavior. tested with both max5 and max6. it doesn't happen with help patchers. my patch is so simple and i really don't see where am i mistaken.

Max Patch
Copy patch and select New From Clipboard in Max.

1. select any umenu item and save preset 1
2. select some other umenu item and save preset 2
3. observe storage window. values are stored properly
4. recall presets 1 and 2. as soon i recall preset 2, value of the umenu object in second preset changes to the value of the first preset!

pdelges's icon

You never recall preset 2 because the 2 message isn't connected to pattrstorage but to the store 2 message.

i.m.klif's icon

uh, this is slightly embarassing. at least behavior is correct :)

now i have to sort out why exactly my bigger patch has problems.....

thank you a lot

klif

i.m.klif's icon

yeah, i just rechecked everything, and now it works as expected.

maybe it's time to take a break ;)

thank you again patric