Force pattrstorage to populate values

Jan 29, 2012 at 5:35am

Force pattrstorage to populate values

So I’m running into the same old problem that used to occur with the preset object: you create some objects, create some presets, then create some more objects, then create a few presets with them. The problem is that the old presets don’t know anything about the new objects, so they have a bunch of unset values.

Is there a way to force pattrstorage to re-save all current client values for a slot? I’m using the preset object in conjunction with pattrstorage and it is definitely a no go. (Max 6.0.4)

#61517
Jan 29, 2012 at 1:11pm

I don’t think there is a way to automagically ‘fix’ your old presets – how would you determine what values the new objects should have in your old presets?

I’d be interested in hearing otherwise (having run into the posted issue before), but I can think of no better method than programmatically recalling then storing each slot in your old preset file (then writing the file back to disk). Obviously this will only add the ‘current value’ of each new object into your old preset (which may or may not be better than having ‘no value’ stored…)

#221953
Jan 29, 2012 at 2:22pm

Not looking for a magic fix, just want the new objects to store with the old objects when I store the preset (after recalling the old preset) a second time. It’s not storing unless I go in and manually “change” the new objects before storing. Seeing as how I have several hundred, I’d like to not do this…

I’m wondering if this is an issue with the way preset and pattrstorage interact.

#221954
Jan 29, 2012 at 4:31pm

Would sending the ‘purge’ message to pattrstorage do what you need (followed by a store)?

#221955
Jan 30, 2012 at 4:01am

The documentation says that it’s for entries that have moved/been deleted, so I’m not sure.

I isolated it further, and it’s an abstraction with M4L objects in it (albeit using pattr), so I think that may be part of it. When I converted it into a subpatcher, it was fine, so, for now, that’s what I’ll go with. (before that the objects were grayed out in the parameter view and empty in the pattrstorage storage window)

This is for my model of the EML-200. I’m posting the project source soon, and am trying to get the presets together.

#221956

You must be logged in to reply to this topic.