Hello!
Is there any method for using a message box to remotely check the "Save contents" box in the properties of an array? I'd really like to avoid having to right-click, select Properties, move the Canvas Properties (grrr), check the box, click OK, and click OK again every time I load something into the array!
-
array message for saving contents?
-
@amazingrolo It is enough to check the box once on creation of the array. Actually when creating an array, the box is already checked, so you don't have to do anything.
If the box is checked, the contents of the array are always saved with the patch if you save the patch.
If you don't need the graphical representation, you can also use the [array] object with the flag -k, this would look like [array define -k $0-yourarray].
-
Thanks for the tips! The problem for me arises whenever I load a new sound into the array using [soundfiler] - this will always print the message "warning: array $0-sound-R: clearing save-in-patch flag" to the PD window (and uncheck that box). I was wondering if there was a handy message I could send so I could just bang that after loading a sound to re-check that box.
In this case I would rather keep the graphical representation, if at all possible, but I can definitely see how using -k would be useful for this in other situations!
-
@amazingrolo It is possible, see here: https://forum.pdpatchrepo.info/topic/10720/change-appearance-of-an-array-by-sending-a-message/2
-
@ingox @amazingrolo Typical! ....... I am getting old.
Ingox finds my post on this forum quicker than I could find the patch on my laptop.
Duh!
David. -
OK great! Thanks for the help!