Thx Ben. The thing is the distance between node output is almost twice the distance reported by the viewport. If I use the value of the Distance Between node, the focus is farther than the expected. I am right now dividing the result by 2 and I think I am getting there and getting the focus plane where I want.
I am trying to figure out the logic on this and the only thing that comes up to my mind is that maybe the focus distance is splitted in two. One half is from camera to object and the other is from object to camera. Don't know if I explained myself or is there some logic into this. 2013/3/29 Ben Davis <benjamincliffordda...@gmail.com> > It looks like "Distance to Output Camera" from the viewport options is > spitting out the info from a plane in front of the camera based on the > distance from the null if it were in the center of your camera's view. If > your null is centered, the values are the same from the ICETree and the > viewport info. > > The ICE info from the "Get Distance Between" is exactly the distance from > center to center (global.kine to global.kine). I don't see a problem with > using the info from ICE to feed into your DOF, you're probably going to get > a more precise focus placement (I'll accept being refuted by the > photographers out there :) > > Hope that helps! > > Ben > > -- > Ben Davis > > www.moondog-animation.com > > +33 6 88 48 54 50 > > > On Fri, Mar 29, 2013 at 9:20 AM, Emilio Hernandez <emi...@e-roja.com>wrote: > >> Hello I am trying to rig the camera DOF so I can attach the distance to a >> null. I am the ICE distance between node. But when I turn on the distance >> to output camera from the viewer, it gives me a different result. >> >> So the Distance to output camera from the viewport options is different >> than the Distance between node in the ICE tree using the kine.global.pos >> from the camera and the null. >> >> I will appreciate any help on this issue. >> >> -- >> >> > --