Position on geometry under the mouse cursor

   1798   0   0
User Avatar
Member
538 posts
Joined: 12月 2006
Offline
Any news about getting position on geometry under the mouse cursor?
Something like hit location in Sculpt SOP

Current python solution:
1. temporary activating prim snapping
2. get position on surface with sceneViewer.selectPosition() + sending fake mouse click with PySide.
3. deactivating snapping

It gives me valid coordinates, but maybe it is some more elegant way?
https://gumroad.com/alexeyvanzhula [gumroad.com]
  • Quick Links