Hi everybody!
I have a question concerning data structures (are you out there, Frank? ;-)
I wonder if there is a possibility to delete an instance of a structure created without having to switch to edit-mode (to delete it "manually").
I imagine something like pointing to the desired instance, and then sending it a [clear< message or something similar.
I also wonder if it's possible to delete single elements from an array in a similar way.
I want to use this for visual representation of sounds recorded in a patch for live-applications, where it makes sense to get rid of certain sounds again without having to clear the whole paint-window...
Thanks in advance,
flo.H
Hallo, Florian Hollerweger hat gesagt: // Florian Hollerweger wrote:
I wonder if there is a possibility to delete an instance of a structure created without having to switch to edit-mode (to delete it "manually").
I imagine something like pointing to the desired instance, and then sending it a [clear< message or something similar.
I'm not sure, but I don't think, this is possible yet. Maybe you could hack and use Pd's internal messages with "cut" here. It might be helpful, that you can read out the (x,y) coordinates of data structures.
I also wonder if it's possible to delete single elements from an array in a similar way.
I'm quite sure, this isn't possible. You can "resize" an array, but this will always delete elements from the end of the array.
Frank Barknecht _ ______footils.org__
On Nov 2, 2004, at 2:56 AM, Frank Barknecht wrote:
Hallo, Florian Hollerweger hat gesagt: // Florian Hollerweger wrote:
I wonder if there is a possibility to delete an instance of a
structure created without having to switch to edit-mode (to delete it
"manually").I imagine something like pointing to the desired instance, and then sending it a [clear< message or something similar.
I'm not sure, but I don't think, this is possible yet. Maybe you could hack and use Pd's internal messages with "cut" here. It might be helpful, that you can read out the (x,y) coordinates of data structures.
I also wonder if it's possible to delete single elements from an array in a similar way.
I'm quite sure, this isn't possible. You can "resize" an array, but this will always delete elements from the end of the array.
You can do this manually in the Properties panel of a "scalar", the
graphical display of a data structure. The array data is just a list
of ; terminated lines. Add or Remove the lines you don't want. But I
don't think its currently possible to do this programmatically. Unless
you want to edit the textfile and [read( it in. But that process has
bugs in it.
.hc
¡El pueblo unido jamás será vencido!