Here's one way to do it: http://darkvertex.com/wp/2010/06/05/python-distance-between-2-vectors/
/Jens On Mon, May 4, 2015 at 9:39 PM, Bradley Gabe <witha...@gmail.com> wrote: > Here's the pseudo code > > -Create 3 vector3 objects > -Set the first two to the global transforms of the first 2 scene objects > -Set the third vector3 to the subtraction of the first 2 vector objects > -Return the length of the third vector3 object > > Sent from my iPhone > > > On May 4, 2015, at 1:57 PM, Greg Punchatz <g...@janimation.com> wrote: > > > > Hey all we are trying to figure out how to get an objects distance from > the camera vis a script. > > > > I am not doing the coding but I thought I could help Dave find an answer > here.He is neck deep in another script an and he was struggling fining it > via the documentation. > > > > I thought maybe one of you nice people might be able to point us in the > right direction. > > > > Thanks > > Greg > > > > > > -- Jens Lindgren ------------------------------------ VFX Supervisor & Lead TD Magoo 3D Studios <http://www.magoo3dstudios.com/>