Hi Dave,

In my understanding the distance to the camera is not the same as the
"depth", which should be the distance to the camera plane.
BUT it might be good enough..? I'll give it a go!
Thanks!

On Fri, Jul 8, 2011 at 5:56 AM, Dave Nunez <[email protected]> wrote:

> something like this should do the trick.
> pseudo code:
>
> camPos = `xform -q -t "yourShotCam" `
> vertPos = "your vertext point position"
> distToVert = mag(vertPos - camPos)
>
>
>
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to