Distance between two points
Hello
I was trying to autofocus a camera using the dist3D expression described on manual, page 755
dist3d(x1,y1,z1,x2,y2,z2)
So I tried with this, to get the distance between the camera and its target (this time I want focus to target, but it could be another object):
It does not work, so I simplified to
dist3d(0,0,0,10,10,10)
this should return a value of 17,3 (the distance between 0,0,0 and 10,10,10) but does not work neither, so I must be missing something very basic.
Any cue?
I was trying to autofocus a camera using the dist3D expression described on manual, page 755
dist3d(x1,y1,z1,x2,y2,z2)
So I tried with this, to get the distance between the camera and its target (this time I want focus to target, but it could be another object):
- Code: Select all
dist3d(Transform3DOp.Translate.X,Transform3DOp.Translate.Y,Transform3DOp.Translate.Z,Transform3DOp.Target.X,Transform3DOp.Target.Y,Transform3DOp.Target.Z)
It does not work, so I simplified to
dist3d(0,0,0,10,10,10)
this should return a value of 17,3 (the distance between 0,0,0 and 10,10,10) but does not work neither, so I must be missing something very basic.
Any cue?