strange behavior of pattrstorage

Feb 23, 2012 at 4:30pm

strange behavior of pattrstorage

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.

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!

– Pasted Max Patch, click to expand. –
#61937
Feb 23, 2012 at 4:40pm

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

#223680
Feb 23, 2012 at 4:44pm

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

#223681
Feb 23, 2012 at 4:50pm

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

maybe it’s time to take a break ;)

thank you again patric

#223682

You must be logged in to reply to this topic.