This script has two functions:
To provide a more reliable "Frame Selected" and "Frame All" function by adding calculation for the Far Clip Plane.
To fix a bug when using ‘
fitPanel’ (assigned by default
to the ‘
f’ and ‘
a’ hotkeys) with Orthographic cameras. Sometimes Maya inappropriately
calculates the Orthographic Width, basing the value on centimeters instead of the
units you've currently set for your scene (eg. meters). It is currently undetermined
what causes this behavior, as it tends to be somewhat erratic.
frameSelected «fit type» «all views» «adjust Far Clip Plane»
|(string)||"-selected" to frame only selected items or "-all" to frame everything.|
|(boolean)||If false, the current view will be adjusted; if true, all views will be adjusted.|
|(boolean)||If true, the size of all scene geometry will be calculated and the camera's Far Clip Plane will be adjusted to extend far enough to see everything.|