iprRegion mel script

 

The iprRegion mel script allows the user to zoom and pan in his original perspective with another persp (ipr_cam).

To execute the script, first source it in the script editor, then select your camera and execute it.

This mel is intended to simulate an ipr render in region, because I think this feature is really missing in Maya.
it's very useful to have such a script, specially when you work on more than 1k output resolutions, and if you have to work on a very tiny area of your perspective.
With this mel, you'll be able to zoom and pan as you want to, and then frame a very small area of the persp. frame, and this according the p.o.v. of your original camera.

You can have then a way better control of very tiny things that are really far from the cam, render them at the res you want, and this without having to render the whole high res image just to work on your small 30*30 pixels wide area like before.

Extra attributes added:

- Zoom: zoom in with your ipr_cam to frame the area you want (default: original fov's value, min: the same, max: 1000)
- Zoom multipier: multiplies the zoom value (default 1, min: 0,001, max 3.5)
- Zoom scale: I figured (a bit late) that maya fov's value can't be higher than 3500. So, if you need to zoom more, I've added this other attribute which scales the camera scale. It has the same effect than a conventional zoom (default: 1, min 0,001, max: 1)
- PanX: pan in X (2d) to frame the area (default: 0, min -10, max 10)
- PanX multiplier: multiplies the value of panX (default: 1, min: 0,001, max: 100)
- PanY: pan in Y (2d) to frame the area (default: 0, min -10, max 10)
- PanY multiplier: multiplies the panX value (default: 1, min: 0,001, max: 100)

Note: if your camera has an imagePlane, it will also be duplicated.

Here is an example:
I took the scene I used to illustrate the zFilterCollection, I've just added a very small streched in Y sphere.
Seen from the cam, the obekct is that small that I can't see anything, or I'd have to render the image at a very high res to have at least a min. of control over the shading.

With the iprRegion script, look at what you'll be able to and the time you're about to save!! ;-)


 

Limitations:

V1.0 didn't work with 2 and 3 nodes cameras, this is corrected in v1.1, so... no limitations so far!!

get script

 

iprRegion mel script - Emmanuel Campin - June 18th 2001