possible to exclude objects from specific pattrstorage presets?

Tobias Rosenberger's icon

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 ... )

Christopher Dobrian's icon

I think the 'active' message is what you want.

Tobias Rosenberger's icon

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.,

willyc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

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

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

@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).

Tobias Rosenberger's icon

thanks to you both!

Nodanoma's icon

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.

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