Maxscript raycast

Hi, it is the first time that I use the raycast function of maxscript
I’m just testing this
the example here
but I would like to debug the hit point position in uv space
How can I do this?

You would need to get the hit face - getHitFace - then query which uv and material is applied to the face, then get the barycentric coordinates of that face - getHitBary - and convert it to UV space.

Hi Munkybutt…thanks as always…I’m still struggling
I’ not sure how to do the uv space conversion from the baricenter position
Can you elaborate this?
thanks again

I haven’t worked with uv space conversion for years.
This thread might help you though: