On Nov 5, 2007, at 12:46 PM, Luke Iannini (pd) wrote:

I think it would be possible to do something like that in Pd and the
iemguis, since you can move them with messages.

There is an alpha version of [cursor] in today's build which will
give you the mouse cursor position.  I just got some ideas of how to
do it better, so it should be better tomorrow. :)

If someone wants to try to do this, I am willing to do the work to
fill in the gaps in Pd so that it's possible.
 

 
Hm, if it was possible to do in Pd I'd /absolutely, without a doubt/ implement it.  Cursor position is gettable with toxy, by the way?

[tot] can get the mouse pointer posution, but only for when the mouse pointer is in a window. The idea of [cursor] is to get the mouse pointer coords always.

The iemguis allowing movement by messages is cool, but it wouldn't help for regular objects of course.  Offhand the pieces needed would be:
Query Pd for the IDs of the currently selected objects
Query Pd for the position of an object id
Move any object by message.

 
I guess you'd need namecanvas in every patch being manipulated (hm, how would you capture the key commands?  [key] needs focus, and [hid] wouldn't know what's focused?)...

I meant start this for GUI objects not all objects (just yet).  That's a much bigger  question, but  I just thought a possibility that I'll look into.

Also, if you are interested in more advanced GUI tweaks, check out toxy, there is a lot of stuff you can do with it.  There is not help file for [tow] or [widget], so anything you might create would be a vast improvement. [tot]'s help patch could really use more examples.  In Pd-extended, there are a bunch of examples in Help->Browser->examples->toxy.

.hc



----------------------------------------------------------------------------

'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day.  - “Hijab Scene #2", by Mohja Kahf