Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How to get joint under mouse cursor like paint skin weights tool

How to get joint under mouse cursor like paint skin weights tool

Anonymous
Not applicable
671 Views
1 Reply
Message 1 of 2

How to get joint under mouse cursor like paint skin weights tool

Anonymous
Not applicable

Hi~!

I'm Technical artist in game industry.

 

I'm working on developing my own skin weights tool.

What i want to know how to get joint under the mouse cursor using API.

In skin weights tool, when press hold RMB 

Snipaste_2020-03-24_11-07-27.png

marking menu pops up related joint that under the cursor .

 

Thanks for reading.

0 Likes
Accepted solutions (1)
672 Views
1 Reply
Reply (1)
Message 2 of 2

stuzzz
Collaborator
Collaborator
Accepted solution

ola, You may probably need to create a MPxContext for that for tracking the mousor cursor 2d position and mousePressEvent.

from that converting the 2d positions to 3d. This will be a decent starting point for doing the math and query the nearest joint.

0 Likes