[maxmsp] pattrstorage & saving only certain elements in a slot
David Beaudry
david at livetheatersound.com
Sun Sep 16 16:10:50 MDT 2007
- Previous message: [maxmsp] pattrstorage & saving only certain elements in a slot
- Next message: [maxmsp] Re: pattrstorage & saving only certain elements in a slot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The active isn't applicable here really, but thanks for reminding me of it. Here's my problem/wish: when saving a preset/slot, I wish for only certain values to be written to the XML file for that particular slot. So say for slot 10, I only need to save the values of "bob" and "fred". For slot 20, I only want to save the value for "sam". In the XML file under slot 10, I'd like to only see <pattr name = "bob" value = "345"> & <pattr name = "fred" value = "678">, and no value in the slot for "sam". Again, it's no big deal as I've been handling it all just fine and getting the data I want. I am just trying to come up with a way, if possible in pattr, of making the resulting XML file more reflective of the data I really want to access for each slot. "setstoredvalue" seems like the closest thing. You can actually set a value of a specific parameter and recall it without any of the other values being stored/recalled, e.g. "setstoredvalue bob 50 234". However slot "50" never shows up in the storage window, nor does it get written to the XML file...but like I said...you can recall it (e.g. "recall 50"), and if I haven't stored anything else in that slot, only "bob" will be updated. Does this make any more sense? Thanks, David P.S. For a more real-world explanation of this exercise, I am saving a bunch of show control cue information via pattr. I want everything saved to the same file, but some cues are lighting cues, some are sound cues, some are messaging cues, etc. It would be nice if lighting cue/slots saved only parameters relevant to lighting cues in the XML file, sound cue/slot data on relevant to sound cues, etc. On Sep 16, 2007, at 12:44 PM, Jean-François Charles wrote: > Do you just use the "active" property? > What is the problem? > Jean-François. > > > At 9/16/07 2:40 PM, you wrote : > >> >> For all you pattrstorage experts out there: >> >> There are times when I am storing a preset that I only want save a >> couple of >> the variables stored in a slot vs. all the variables. If for >> nothing else it >> is to cut down on some confusion in the XML file. For example, say >> I have 3 >> number boxes, "bob" "sam" "fred". In most fo the slots I want >> "bob" & "sam" >> stored, but in a few cases I just want just "fred" stored. Again, >> I have it >> all working and am extracting the right data when I need it...I'm >> just trying >> to clean up a pretty crazy XML file so it can be edited (and >> understood) by >> others outside of Max. >> >> Thanks for any advice. >> >> Best, >> David >> >> >> _______________________________________________ >> maxmsp mailing list >> maxmsp at cycling74.com >> http://www.cycling74.com/mailman/listinfo/maxmsp > > > > _______________________________________________ > maxmsp mailing list > maxmsp at cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp
- Previous message: [maxmsp] pattrstorage & saving only certain elements in a slot
- Next message: [maxmsp] Re: pattrstorage & saving only certain elements in a slot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
