Notifications
Clear all

[Closed] evaluate angle with mxs

I would like to evaluate the angle between the local z-axis and the world z-axis via MaxScript,
without the use of a ExposeTransform helper.
Any ideas would be much appreciated.

2 Replies

The most basic way would be acos(dot [0,0,1] $.dir) – you can look up How to find angle between two vectors in maxscript helpfile.

EDIT: it’s in Maxscript FAQ > Working with vectors > How do I find the angle between 3 vertices?

hey Swordslayer – that does exactly the trick. Thank you very much.