MaxScript : Check if an helper is snapped on face

MaxScript : Check if an helper is snapped on face

Anonymous
Not applicable
528 Views
1 Reply
Message 1 of 2

MaxScript : Check if an helper is snapped on face

Anonymous
Not applicable

Hi there, i am trying to check if my dummies have position's coordinates which matches with on of my geometry's face. 

For example, I move a dummy using "Snap to Face" tool, then I want to check if it.s really "snapped" to the face.

 

The problem is the geometric object could be complex, so create iterations by faces will be not really optimized. 
Is there any way to check only the nearest face from the dummy ?

 

Thanks.

0 Likes
529 Views
1 Reply
Reply (1)
Message 2 of 2

kevinvandecar
Community Manager
Community Manager

hello,

 

I do not think there is an easy automated way to do this (other than iterate the geometry like you mentioned). However, you could probably do it interactively... The MAXScript would need you to select the helper, and then the face you visually think it is snapped to, then check that they are aligned.

 

I am not a strong MAXScript coder, so would not have detailed advice to get it all working. However, you might be able to find something already close. For example, maybe this one could help get you started: http://www.scriptspot.com/3ds-max/scripts/clone-align-on-faces.

 

Hope it helps,

kevin

 


Kevin Vandecar
Developer Technical Services
Autodesk Developer Network



0 Likes