Technology | ActiveZoom.mel

ActiveZoom is a simple MEL script for Maya that creates a dialog with controls that change overscan and filmOffset of a perpective camera. It allows to zoom and pan a perpective view without moving the camera. Useful for camera tracking.

To use activeZoom, you have to create a Hotkey (I suggest Alt+z). When executed, it automatically gets the panel under the mouse pointer. It the panel is a perpective camera, a dialog box appears showing controls for zooming and Panning. Otherwise, a warning message is displayed in the Command Feedback. This is the reason why activeZoom cannot be added to the Shelf.

ActiveZoom controls:

  • Zoom allows to zoom the camera whitout moving it or changing its focal lenght;
  • PanX and PanY allow to center the zoom area;
  • Reset sets the camera to a default zoom and pan value.

In order to save a file for rendering, be sure to press the Reset button of ActiveZoom. If you don't do that the rendering result may by horizontally or vertically shifted.

ActiveZoom doesn't modify the camera animation in any way, so it can be very helpful if you want to temporarily zoom a moving camera. A tipical example is a camera tracking task, on which is necessary to look in detail the contact areas between the 3d geometry and the live background, without having the possibility of moving the camera.

Download

ActiveZoom 1.0 for Maya Download (ZipFile 1.48KB)

Install

To use ActiveZoom 1.0 follow the instructions at the begin of the file ActiveZoom.mel.