[PD] how to destroy/delete an object with dynamic patching?
IOhannes m zmölnig
zmoelnig at iem.at
Wed Oct 18 07:35:09 CEST 2017
> 2017-10-18 3:00 GMT-02:00 Alexandre Torres Porres <porres at gmail.com>:
>
>> hi, is there even a way to destroy/delete an object with dynamic
patching?
iemguts' [canvasdelete]
(it also adds a message to the canvas class; so you don't need to use
the actual object, just ordinary dynamic patching messages)
On 10/18/2017 07:10 AM, Alexandre Torres Porres wrote:
> oh... it has to be a vanilla way - I can't afford to have a dependency on
> this
then you're basically out of luck.
there is a reason, why a library like iemguts has an object like
[canvasdelete]: you cannot do this otherwise.
fmdars
IOhannes
PS: but to be honest, there is a hacky way to delete an object, by
mimicking mouse events to select the region where the desired object
(and all other objects that overlap with it) resides and then mimicking
a keyboard event that "cuts" the object. this is highly brittle (as
opposed to the [canvasdelete] method which i consider *very* stable)
gfamrds
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20171018/5c409dc4/attachment.sig>
More information about the Pd-list
mailing list