ScriptSpot

Forum topic · Scripts Wanted

Distance Between Two Objects

By JokerMartini · 2011-02-09

Description

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 (1)

distance()

Anubis · 2011-02-09

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.