[PD] dynamic destruction and disconnection

Miller Puckette mpuckett at man104-1.ucsd.edu
Mon Apr 30 17:34:23 CEST 2001


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?

cheers
Miller

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 mailing list