![]()
0 Comments
![]() Script:var viewport = moi.ui.getViewportUnderMouse() if ( viewport ) #3 to zoom extens for just one single viewport that the mouse is over or zoom extents all view if the mouse is not currently over a viewport. Script:moi.ui.getActiveViewport().reset() #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. ![]() 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 |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |