hi, is there even a way to destroy/delete an object with dynamic patching?
cheers
oh... it has to be a vanilla way - I can't afford to have a dependency on this
2017-10-18 3:00 GMT-02:00 Alexandre Torres Porres porres@gmail.com:
hi, is there even a way to destroy/delete an object with dynamic patching?
cheers
2017-10-18 3:00 GMT-02:00 Alexandre Torres Porres porres@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
2017-10-18 3:35 GMT-02:00 IOhannes m zmölnig zmoelnig@iem.at:
there is a hacky way to delete an object, bymimicking mouse events to select the region where the desired object
yikes...
there is a reason, why a library like iemguts has an object like [canvasdelete]: you cannot do this otherwise.
But is there any particular reason not to have a simple message to Pd that would delete an object? So one could be "in luck" and not have to rely on externals or painful in the back hacks?
cheers
On 2017-10-18 15:15, Alexandre Torres Porres wrote:
2017-10-18 3:35 GMT-02:00 IOhannes m zmölnig zmoelnig@iem.at:
there is a reason, why a library like iemguts has an object like [canvasdelete]: you cannot do this otherwise.
But is there any particular reason not to have a simple message to Pd that would delete an object? So one could be "in luck" and not have to rely on externals or painful in the back hacks?
iirc, there was a feature-request (cum implementation) on the sf tracker and it was turned down.
fgmasdr IOhannes