[PD] dynamic destruction and disconnection
Joseph A. Sarlo
jsarlo at peabody.jhu.edu
Mon Apr 30 18:28:02 CEST 2001
That would be great. What would be really nice is to have destructors that
are exact counterparts to the "obj" and "connect" ("destroy" and
"disconnect"?) messages sent to canvases. This would make creating
patches that use dynamic instanciation much easier. Also, one could
conceivably build a GUI utilizing this (I'm almost considering doing
| Joseph A. Sarlo
| Computer Music Dept.
| Peabody Conservatory
| Johns Hopkins University
| jsarlo at peabody.jhu.edu
On Mon, 30 Apr 2001, Miller Puckette wrote:
> I agree... there's no way (as yet, anyway) to get a pointer to the last
> created object in a patch (for instance) so taht you could store it and use
> it later to delete the object. Doing this well would be somewhat complicated
> and would make the "pointer", etc., objects run slower (stale pointer checking
> would be harder.)
> An easier hack would be to give canvases a way to delete objects by numerical
> index... would that help?
> On Mon, Apr 30, 2001 at 04:32:57PM +0200, _-¯-_ wrote:
> > hi
> > |Does anyone know of a way to dynamically destroy an object using the
> > |"send pd-xxx" approach? Also, is there anyway to disconnect objects
> > |dynamically?
> > did you find/make anything?
> > i ve only managed to selectall,menu_cut and start over from scratch. ;)
> > the problem with both destroying and disconnecting is getting the
> > reference to the object.
> > you could either emulate a mouseclick,
> > or work out how to access the stuff via canvas/glist directly,
> > -- > < D ¥ . 0 R g
More information about the Pd-list