[PD] deleting instances of data structures
Hans-Christoph Steiner
hans at eds.org
Tue Nov 2 15:39:30 CET 2004
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!
More information about the Pd-list
mailing list