Distance Between Two Objects

I would like a way to find the distance between two objects. What is the best way to go about doing this through maxscript?
Using the measuring tool, getting the distance value between the two objects and then deleting it?

Thoughts.

Thanks.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

distance()

Hey John,
the distance between 2 objects or 2 points? Max distance() function accept both.

distance <point2> <point2>
distance <point3> <point3>
distance <node> <node>

when pass nodes to the function it computes the distance between their pivot points.

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.