|01 January 2011||#2|
Sony SCEE Liverpool
Manchester, United Kingdom
Join Date: May 2008
you can use the draggerContext command to get the mouse position, which you could then feed to the window -tlc flag to build a window at a specific point. However this only works on a viewport, so you wouldn't be able to do this wherever you liked (i.e. over another UI).
You can get more complex mouse info/functionality from the API via python though, but I can't tell you much about doing it that way...
|02 February 2011||#3|
Join Date: Oct 2006
but that does'nt work.
correct me if i m wrong
i think there are two different spaces 1. screen space and 2. UI space
both r having different coordinates. context is working on screen & window is on UI
that is the reason i m not getting window at mouse position
|02 February 2011||#4|
If you're relying on mel I cant help, but if you have no problem doing it with python - you just need to install 'xlib' package and than just use this:
oops, forgot to mention it's for linux only
..aut inveniam viam aut faciam..
::Copy SOP 4 Maya::
|02 February 2011||#5|
Join Date: Sep 2003
Thread automatically closed
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|