Patches item #2171733, was opened at 2008-10-16 15:53 Message generated for change (Settings changed) made by zmoelnig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2171733...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: feature Status: Open Resolution: None Priority: 5 Private: No Submitted By: IOhannes m zmlnig (zmoelnig) Assigned to: Miller Puckette (millerpuckette)
Summary: [feature] select/delete objects without gui interaction
Initial Comment: currently the only available method to select an object, is to use GUI-interaction (mouse) or simulate this via "mouse"-messages to the canvas. both things only work with gui enabled and have problems with overlapping objects.
the attached patch (against current svn) adds following messages to the canvas: - select <id> - deselect <id> - deselectall
they allow programmatic selection of objects; <id> is the same object-id as used e.g. for the "connect" message.
this also allows programmatic deletion of objects-per-id, e.g. by sending a message "deselectall, select 14, cut" to the canvas.
----------------------------------------------------------------------
Comment By: IOhannes m zmlnig (zmoelnig) Date: 2010-08-11 20:34
Message: attached are 2 updated patches, one adding the "select" messages and one adding the "delete" message
----------------------------------------------------------------------
Comment By: IOhannes m zmlnig (zmoelnig) Date: 2010-08-11 19:31
Message: well, yes... however: "select" would allow for both selecting and deleting (with the "cut" message)
if a "delete <id>" message was added, i would be happy as well. once you are at it, i would add both "delete" and "select" message, though...
----------------------------------------------------------------------
Comment By: Miller Puckette (millerpuckette) Date: 2010-08-03 05:12
Message: Wouldn't it be better just to have a "delete" method? Selecting only makes sense if the object is visible anyhow, forcing you to have stuff visible to edit it programmatically.
If this is indeed what is wanted, it should be fixed so as not to crash when y runs off the glist and goes to zero.
----------------------------------------------------------------------
Comment By: IOhannes m zmlnig (zmoelnig) Date: 2008-10-16 15:54
Message: File Added: objectselection.diff
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2171733...