Distance between two points

Recently I ran across a colleague who asked me about a script to get the distance from the camera to any selected object in the Maya viewport. His specific case was to set the depth of field of the camera based on the distance value.

Read more