[PD] how to destroy/delete an object with dynamic patching?

abel.jerome at free.fr abel.jerome at free.fr
Wed Oct 18 13:01:25 CEST 2017


As IOhannes said, the vanilla way is something like this:

    create objects in a subpatch
    knowing the positions of the object, you can simulate the mouse to select the object and send a "cut" message.

I've done something like this few years ago (I've used zexy/index for a database-like function, but you can use [list] or [text]), see attachment.

The message looks like this : "vis 1, editmode 1, mouse 19 $1 0 0, mouseup 21 $2 0, cut, vis 0", where $1 and $2 are X and Y of the object.

Hope that helps.

j.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynObjects.zip
Type: application/zip
Size: 3298 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20171018/0b4d437f/attachment.zip>


More information about the Pd-list mailing list