- Add option to run on all cameras in the scene except for defaults.
- Or add a widget that presents all cameras available in scene and allows the user to choose what cameras to run the operation on...
- Update near and far
QLineEdit
s toQDoubleSpinBox
- If the user presses enter in the near and far widget, this should envoke the "apply"
Maya UI Tool to reset the scenes camera(s) clip plane values.
- Download this repo
- copy
reset_camera_clip_planes.py
into:- Windows:
$HOME/maya/scripts
e.g. on my instance of Windows it would beC:/Users/johnco/Documents/maya/scripts
- Windows:
- From a
Python Buffer
in theMaya Script Editor
, execute the below:- Windows:
import os script_path = "{home}/maya/scripts/reset_camera_clip_planes.py".format(home=os.path.expandvars("$HOME")) # e.g. "C:/Users/johnco/Documents/maya/scripts/reset_camera_clip_planes.py" execfile(script_path)
-
Choose the camera context to for the "Apply" operation to execute on.
- Can either be run on the selected cameras in the scene
- Or on all cameras
-
Click apply to reset the cameras clip plane values
Maya has a handy feature to display a manipulator visualising the near and far clip planes for a camera
The toolbox provides options