Farsheed Ashouri Posted August 27, 2009 Share Posted August 27, 2009 (edited) Hi. I need a locator that I could connect to camera and easily animate my DOF. There is a script in maya named depthOfFieldCamera.mel that does it very nice. How can I achieve this functionality in Houdini? Edited August 28, 2009 by Farsheed Ashouri Quote Link to comment Share on other sites More sharing options...
michael Posted August 27, 2009 Share Posted August 27, 2009 http://www.sidefx.com/docs/houdini10.0/rendering/depthoffield http://www.sidefx.com/docs/houdini10.0/basics/handles_camlights Quote Link to comment Share on other sites More sharing options...
Farsheed Ashouri Posted August 27, 2009 Author Share Posted August 27, 2009 Fast reply, Thanks Micheal. Quote Link to comment Share on other sites More sharing options...
Farsheed Ashouri Posted August 27, 2009 Author Share Posted August 27, 2009 A question... Can I parent the handle to another object? I want my camera to follow an object. (sorry I am newbie) Quote Link to comment Share on other sites More sharing options...
michael Posted August 27, 2009 Share Posted August 27, 2009 add an object to the Look At Parameter of your camera..and I guess you could use the distance between that object and your camera as the Focus Distance. Quote Link to comment Share on other sites More sharing options...
Farsheed Ashouri Posted August 27, 2009 Author Share Posted August 27, 2009 How can I calculate the distance? Quote Link to comment Share on other sites More sharing options...
edward Posted August 28, 2009 Share Posted August 28, 2009 vlength(vtorigin("/obj/path_to_camera", "/obj/path_to_null")) 1 Quote Link to comment Share on other sites More sharing options...
Farsheed Ashouri Posted August 28, 2009 Author Share Posted August 28, 2009 Oh, appreciate you Edward. You solve my final problem. Now I want to automate this process so I started a new thread HERE. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.