Page 1 of 1

Camera Maya Focus ?

Posted: Mon Jul 16, 2012 9:52 am
by oshosamiry
Hi .
How can we set a camera in maya so it focus on a specific object in octane render and don't be distracted with the object's movement or its cameras ?
There is no script ?
Please write your scripts for download ?

Image
http://ndi.site88.net/photos/0a32110fff0f.jpg
Image
http://ndi.site88.net/photos/44defa9fddff.jpg

Re: Camera Maya Focus ?

Posted: Tue Jul 17, 2012 3:03 pm
by tchoa
You can simply use a distanceBetween node and a geometryConstraint.
Create a distanceBetween node and a locator.
Connect the center attribute of your camera to the first point of the distanceBetween.
Connect the center attribute of the locator to the other point attribute of the distanceBetween.
Connect the distance result of the distanceBetween to the focusDistance of the camera.
Then if you want to change the point in focus of the surface you want in focus you can use a geometryConstraint on the surface for the locator.
If you're using the octane for maya plugin then simply connect the distance result to the octFocalDepth attribute.

Re: Camera Maya Focus ?

Posted: Sat Sep 08, 2012 7:18 pm
by RickToxik
Here's a script to control the focus distance easily in maya:

http://render.otoy.com/forum/viewtopic.php?f=28&t=23455