[PD] dynamic destruction of objects

Peter Lunden plu at tii.se
Thu Jan 23 14:43:11 CET 2003


hi there,

You can delete objects by sending messages to the canvas, it's very slow 
but it does the job.
Here is a short example of the content of a message box:
;
foo.pd find ObjToBeDeleted;
foo.pd cut

The object ObjToBeDeleted in window foo.pd will be deleted when banging 
the message box.

--PLu

marius schebella wrote:

>hi,
>since we have the undo possibility now, maybe it is also easier to
>destruct/cut objects. would be great to hear about a new feature, i do not
>know about so far??? i searched the mailing-list-archieve and found some
>discussion about this topic, but not a real answer.
>in detail i am starting to create a (lets call it) step-sequencer and would
>like to have the possibility of add/delete "channels" dynamically.
>so i will have a bunch of messages which create the objects of the channel
>(or simply a gop) but i also want to implement the possibility of deleting
>them again...
>so i know the name of the object(s), but also the object order-number (which
>i already use for connecting) and for that i would like to use a message
>like "destruct object 77" or "cut object channel5".
>i ran into several problems using the commands find and cut,... first i
>cannot send these in one message (the searching is to slow, so there need to
>be a delay, which i have no guarantee, that is will work correctly) and
>second the patch window is "blinking". which is ugly.
>all alternative ideas are welcome!!!
>marius.
>
>
>_______________________________________________
>PD-list mailing list
>PD-list at iem.kug.ac.at
>http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
>  
>







More information about the Pd-list mailing list