Hello.
In Maya I need to create a window with buttons on it that will launch scripts. This window will be created with its topLeft at the mouse position when the button was pressed a la Luxology Modo. When the button is released the window will close. I would like this to function over both of my two monitors.
For example, I want to have a few of these “script launcher windows” that are mapped to F1/F2/F3/F4.
I have heard that this is not possible in mel or python alone to query mouse position without getting really deep in the api. I’ve heard whispers that its easy in PyQt. I’ve downloaded and installed python/PyQt for maya 2012 and followed the steps from Nathans website (front page)
###########################
At this link Nate talks about getting Mouse Hover. However, I dont know how to implement this or know if it works for what I want. I could of course skip the mouse position for the window but i find it sooo convenient in modo that i would be really disappointed if I couldn’t implement it in Maya
http://forums.cgsociety.org/showthread.php?t=933209
I know that there are many ways to launch a ui (I’m using designer since its the fastest/easiest for what Im doing).
Thanks.