mouse pointer

15 views
Skip to first unread message

viky....@gmail.com

unread,
Sep 17, 2008, 7:38:12 AM9/17/08
to python_inside_maya, viky....@gmail.com
hi!
is it possible to program maya so that if i take my mouse over some
object and i should know the name of that object????

John Creson

unread,
Sep 17, 2008, 12:35:58 PM9/17/08
to python_in...@googlegroups.com
if you right click over the object, the context sensitive menu will
also tell you the name of the object.

Ravi Jagannadhan

unread,
Sep 17, 2008, 4:20:24 PM9/17/08
to python_in...@googlegroups.com
You could, in theory, trap a mouse-move message and see if the
cursor's co-ordinates are within the viewport, then drop a ray from
the cursor to see what in the scene it intersects, and get that
object's name.

John's solution is better, but if you wanted to code it up yourself, I
think you could use the API to do this (Windows, not sure how Linux
handles mouse events).

--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

Reply all
Reply to author
Forward
0 new messages