Shared presets for bpatcher instances using pattrstorage

Sep 2, 2012 at 4:39pm

Shared presets for bpatcher instances using pattrstorage

I’ve read lots of related posts, but haven’t found a solution. The problem at hand is sharing pattrstorage presets across instances of a bpatcher.

I have a bpatcher with a video effect. I’m using bpatcher arguments (1, 2, 3, etc.) to distinguish between multiple instances of this bpatcher. These arguments also distinguish the pattrified controls inside each instance using the #1 construct. I also have presets via pattrstorage inside the bpatcher. I want all instances of a video effect to draw from the same set of presets. But each instance will only read and write its own presets to disk. That’s because the instance number is stored with the objects in the json file. For example, here are a few lines from the json file saved by bpatcher instance #1 (every place you see the number 1 is representative of the instance):

{…
“1rota_fx_preset” : [ 0 ],
“rotaparams[1]::1rota_anchor_link_fixed[0]” : [ 0.0 ],
“rotaparams[1]::1rota_anchor_link_fixed[2]” : [ 0.0 ],
… etc…
…}

Any love is greatly appreciated!

Jeff

#64198
Jul 23, 2013 at 5:36am

Hello Jeffburger. Did you ever find a solution to this ? I’m doing something similar.

#256874
Jul 23, 2013 at 11:06am

+1 I’m looking for a soltion to this problem too

#256938
Jul 24, 2013 at 5:46am

” I’m using bpatcher arguments (1, 2, 3, etc.) to distinguish between multiple instances”
Why do you do that?

Why don’t you use a json file written down to disk on each save and loaded by all instances automatically?
Do the parameters have different scripting names depending on instance/argument number?
cheers?

#257002

You must be logged in to reply to this topic.