I'm working on a patch for a multi-channel video performance. I want to create presets for various video clips to adjust brightness, contrast, scaling, etc., so that when I load up a given clip, it will automatically come up with those preset values. Ideally, I'd like to have the clips and their presets be portable between channels. In other words, I'd prefer if I can put VideoA.mp4 into any one of the three channels - which each have independent adjustments - and have it take its presets with it. At minimum, I need to be able to set each video's preset values in one of the three channels without it affecting the others. For example, if I have VideoA.mp4 in channel 1 and VideoB.mp4 in channel 2, I need to be able to save their values independently, because next time I load up VideoA.mp4 in channel 1, a different video might be in channel 2. So I would not want channel 2's presets to load along with channel 1's.
I'm having difficulty with two things:
1) Getting independent control through the pattr system of different sets of objects. Haven't figured out how to get pattr to save and load channel 1's presets without doing channel 2's presets at the same time.
2) Getting the selection of video name to be the thing that loads the presets. In other words, when I load a video from a menu, it should automatically load the presets, rather than requiring me to recall them with numbers. Do I need to do it with some sort of a lookup, or is it possible to do this directly within the pattr system?
I've attached a piece of my patch with (hopefully) the relevant pieces in it.
Thanks for any suggestions!