Notifications
Clear all
[Closed] How to find the angle betwen two lines
Aug 14, 2005 7:41 am
I’ve attached a script which calculates the angle between two lines. Optionally you can supply a plane normal through which the angle should be measured. I hope my comments inside the script are enough to get you on the way.
Cheers,
Martijn
Aug 14, 2005 7:41 am
Thank you Martijn van Herk !!
I do not understand your maxscript,my maxscript is very poor.
I only want to know ,Select two shapes, run a script, I can know the angle between two lines
But now it can not done .
What shall I do?
Hope you help me once again .
Thank you Martijn van Herk very very much!!
1 Reply
Use the protractor helper if you dont’ know Max script.
This will return the angle between three objects. Select first the center object and then the two ends of the lines. Run this line and it will return the angle.
acos (dot (normalize ($[2].pos-$[1].pos)) (normalize ($[3].pos-$[1].pos)))