Max2008之前版本旋转视图的函数
Fn RotateViewPort inputAxis inputDegrees =
(
ViewPortMatrix = inverse(ViewPort.GetTM())
RotationMatrix = (quat inputDegrees inputAxis ) as Matrix3
ViewPortMatrix *= RotationMatrix
ViewPort.SetTM (inverse ViewPortMatrix)
)
RotateViewPort [0,0,1] -1