Forums > MaxMSP

possible to exclude objects from specific pattrstorage presets?

March 8, 2013 | 9:55 pm

i am developing a preset system for a theatre production and plan to make use of the interpolation feature of pattrstorage for all kind of animations. one question: is it possible, to deactivate objects from specific presets?
F.e.:
Let’s say i am moving a gridshape from left to right (pos -0.8 to pos 0.8) and start this animation process with preset one, but want to end it only with preset 3, since in between i want another process happen (f.e. with preset 2 i would like to change the alphachannel of the gridshape abruptely). Since i want the greatest flexibility, i don’t want that the gridshape position interpolation is somehow influenced by preset 2 (whose interpolation mode is set to none), but ignored…
(an ugly workaround would be to use split / recall combinations, but i would really prefer not using line, jit.anim.drive or recall … )


March 9, 2013 | 12:33 am

I think the ‘active’ message is what you want.


March 10, 2013 | 5:09 pm

thanks christopher, but what i was really looking for is not to deactivate one object from the whole pattrstorage, but only from one specific preset slot within that pattrstorage… i think it is not possible. I now started to build a workaround with a combination of multiple pattrstorage, coll and preset objects.,


March 10, 2013 | 5:31 pm

It is possible to use the "recall" message to pattrstorage to load an interpolated value for a specific object (see example).

– Pasted Max Patch, click to expand. –

You could achieve what you want by sending a series of recall messages to pattrstorage (one for each client object).

To programmatically build a list of ‘all clients less the ones you want to exclude’ you could use a "clientlist" message to pattrstorage to create a list of ALL client objects, then filter this list to remove the ones you want to exclude


March 10, 2013 | 7:16 pm

@tobiasros My implication was that you can deactivate that parameter whenever you select particular presets (preset 2 in your example) then reactivate it for other presets. Something like this example (store values for presets 1,2, and 3, then try recalling the presets using float values between 1 and 3).

– Pasted Max Patch, click to expand. –

March 10, 2013 | 8:06 pm

thanks to you both!


March 31, 2014 | 12:31 pm

there is a way to save client’s active states in the preset with a pattr object for the active state set to first default_priority. algorithms for handling multiple clients are a matter logic, but its doable.

– Pasted Max Patch, click to expand. –

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