Thanks João,
I'm looking into a brute force workaround whereupon I drip the data structure
and copy it to a buffer structure but with the scalars that I want to delete
filtered out - then I clone this buffer back to the original thus deleting
certain scalars. This should work for my needs.
Also as an aside, I'm just reading Frank's data structure tutorial patches (I'm
a beginner to this topic!). I really think that these should be added to the
official vanilla documentation.
Cheers, John.
- Original Message
> From: João Pais
> To: JF
> Sent: Sat, 23 April, 2011 1:38:27
> Subject: Re: [PD] Data Structures - Delete specific scalar?
>
> unfortunately, that and many other basic things aren't possible with data-s
>yet. there are a couple ways you could use to circumvent this limitation:
>
> - use a field for active or unactive scalars, and set them to 0 or 1. then
>connect them to a spigot or similar, so that the other fields don't go
>through
>the rest of the patch. You can also connect this to the -v (?) field, to make
>this scalar invisible.
> - if you want to be radical, get the coordinates of your scalar, and using
>pd-messages, emulate the mouse's behaviour of going to edit mode, selecting
>the
>scalar and deleting it.
>
> Or write the st. puckette and tell him about putting this in.
>
> João Pais
>
> > Is there any message based way to delete a scalar?
> >
> > As I presume what people usually do is select the graphic in the
> > datawindow
>and
> > delete it this way. I need to do this without the graphical selection.
> >
> > I'm currently using data structures just as a multi-dimensional storage
>object
> > (the graphical side doesn't concern me). I've developed [data/drip] and
> > [data/filter] patches akin to [list-drip] and [list-filter]. I'm now
> > looking
>to
> > create an object where I can remove specific scalars based on whether or
not
> > their value fields match a certain condition (via [data/filter]).
> >
> >
> > Thanks in advance as always,
> > John.
> >
> >
> > ___
> > Pd-list@iem.at mailing list
> > UNSUBSCRIBE and account-management ->
>http://lists.puredata.info/listinfo/pd-list
>
>
> --Friedenstr. 58
> 10249 Berlin (Deutschland)
> Tel +49 30 42020091 | Mob +49 162 6843570
> Studio +49 30 69509190
> jmmmp...@googlemail.com | skype: jmmmpjmmmp
>
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list