Hello all,
I am trying to get the face index of a mesh as you drag the mouse along it. I have found some code that has got me in the right direction.
However I am having trouble getting the face id. I am using a cmds.draggerContext and inside the onDrag function I have a fnMesh.closestIntersection call that is returning an int pointer as a result but I cannot figure out how to covert the pointer to an int i.e. the actual face id.
The code is below as a gist for you:
If there is a way to get the faceID or the Face straight out of the pointer that would also be awesome!
Cheers,
Ben