Macro Zoom1 1/pl

Description
Zooms the camera so objects appear their actual size on your screen. For example, you should be able to measure a 100 mm cube to be 100 mm with a ruler held up to your screen.

How To Use
Execute the macro to zoom to the actual size of your objects. Sometimes, due to limitations with Qt the hardware information given to the macro might be incorrect, for example the screen width, in millimeters might be incorrect. For such cases there is a calibration dialog. To bring up the dialog, press Ctrl key while executing the macro. A 100 mm temporary cube is created. Measure the cube that appears on your screen with a ruler or caliper and enter your measurements (in MM) into the dialog. It will compute the appropriate tweak parameter to use for your hardware.

This tweak parameter is stored in user parameters at Plugins/Zoom1_1_Macro/Tweak.

How it works
The screen size (of the MDI view, aka the 3D view) is fetched from Qt in MM. The camera height is then set to the lesser of the width or height of the screen. For example, if the screen width/height is 800, 600, then the camera height is set to 600 above the scene.

Limitations

 * 1) Sometimes for various reasons the information provided to the macro by Qt regarding hardware dimensions might be incorrect, in which case the Tweak parameter is needed via the integrated calibration dialog.
 * 2) Only works with orthographic camera modes.
 * 3) Obviously, there is a limited range of sizes where this can be used.

Precautions
Care must be taken when holding up objects or attempting to measure things on the screen lest the screen be physically scratched.

Script
The macro icon

Zoom1_1.FCMacro