Thanks to

Pior "pior" Oberson
for the original concept

Hendrik-Jan "renderhjs" Schoenmaker
for suggestions and ideas

IC.FrameIt helps the viewport navigation taking care of viewport orientation and zoom factor according to geometry in the scene. Its adaptive behaviour allows to get the better framing for each condition.

Note: See SETTINGS section at the beginning of the script to adjust framing behaviour.
Autodesk 3ds Max 2008+
Download — version 0.7b — 2009.11.20 — 6.59 KBytes
Discussion thread on Polycount forum