DOF Helper Tool for Maya
Posted: Thu Mar 17, 2005 5:38 pm
Based on the "DOF toy for Max" that dschaga created and the idea that 8etty had (connecting the near focus limit and the far focus limit to the near clipping plane and the far clipping plane), I decided to see if I could make this work.
Here's what I did manually:
1. Create a new camera - name it "DOFhelper"
2. Parent constrain the new camera to the Maxwell camera with no offset
(maintain offset unchecked - camera should snap to Maxwell camera location)
3. Show clipping planes for "DOFhelper" cam
4. Create the following expressions for the "DOFhelper" cam for NearClipPlane and FarClipPlane respectively:
DOFhelperCameraShape.nearClipPlane=100*MXCamera1.nearFocusLimit;
DOFhelperCameraShape.farClipPlane=100*MXCamera1.farFocusLimit;
(note: the factor of 100 is because the units of the near and far focus limits in the channel box for the Maxwell camera are in meters - just converting to cm)
5. To show or hide near/far focus limits (clipping planes of "DOFhelper"), select the "DOFhelper" cam and go to Display, Camera/Light Manipulator, Clipping planes from the menu
I'll automate this in a mel script soon
Here's what I did manually:
1. Create a new camera - name it "DOFhelper"
2. Parent constrain the new camera to the Maxwell camera with no offset
(maintain offset unchecked - camera should snap to Maxwell camera location)
3. Show clipping planes for "DOFhelper" cam
4. Create the following expressions for the "DOFhelper" cam for NearClipPlane and FarClipPlane respectively:
DOFhelperCameraShape.nearClipPlane=100*MXCamera1.nearFocusLimit;
DOFhelperCameraShape.farClipPlane=100*MXCamera1.farFocusLimit;
(note: the factor of 100 is because the units of the near and far focus limits in the channel box for the Maxwell camera are in meters - just converting to cm)
5. To show or hide near/far focus limits (clipping planes of "DOFhelper"), select the "DOFhelper" cam and go to Display, Camera/Light Manipulator, Clipping planes from the menu
I'll automate this in a mel script soon