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
> 
> 

Reply via email to