![moi3d custom snap moi3d custom snap](https://d3a2gvihmbqfjo.cloudfront.net/16/163e92100a344445a749511eaf899982/163e92100a344445a749511eaf899982.png)
#2 for zooming extents for just one single viewport instead of all of them – it will zoom the active view it means the viewport under the mouse or the one that last had a click in it. It will zoom extents to the selected objects the first time you activate it, and if you do it a second time it will zoom extents to everything: ZoomExtents: It works the same as the reset button.
![moi3d custom snap moi3d custom snap](https://d3a2gvihmbqfjo.cloudfront.net/c5/c58d102e5b084a0ebf31c0dd984ce0a2/c58d102e5b084a0ebf31c0dd984ce0a2.png)
Script:var v = moi.ui.getActiveViewport() if ( v ) v.interactiveViewChange('zoomarea') ZoomArea – trigger the area zoom on the viewport that the mouse is over. Script:moi.ui.getActiveViewport().Zoom( 1.1 ) Script:moi.ui.getActiveViewport().Zoom( 0.9 ) Script:moi.ui.getActiveViewport().Pan( 0, -1 ) Script:moi.ui.getActiveViewport().Pan( 0, 1 ) Script:moi.ui.getActiveViewport().Pan( 1, 0 ) Script:moi.ui.getActiveViewport().Pan( -1, 0 ) If the mouse is not currently over a viewport, it will use the one that last had a click in it, or if there is just one single viewport maximized it will use that one. Zoom & Pan – the way this version works is it will do it on the viewport the mouse is currently over. You put in a text surrounded by /* */, just after the script: part – see MoI forum for example.
Moi3d custom snap code#
Note: for keyboard shortcus that have script code in them, you can put a comment in the code with a note in it. Simple shortcuts can be found in moi_hotkey.txt file. The code for shortcut should be one long single line. To define them, open Option dialog window, go to Shortcut keys section, push the "Add" button there which will insert a new blank shortcut key click in the "Key" column and add the key you want to use to activate it, like "H" for example then click in the "Command" column and paste in the script line _or_ open the moi.ini file (C:\Documents and Settings\\Application Data\Moi\moi.ini) and edit directly the section. You can put the following scripts as a keyboard shortcuts.