some useful shortcuts...
Hides all visible objects and shows all previously hidden objects:
A=script:var gd = moi.geometryDatabase; gd.deselectAll(); gd.hide(); gd.invertSelection(); gd.hide();
Extents the grid (array of lines in the viewport) twice:
B=script:moi.grid.Sections += moi.grid.Sections;
Switches snap angle between default 90° and 45° and vice-versa:
C=script:moi.drawingAids.straightSnapAngle = Math.abs( moi.drawingAids.straightSnapAngle - 135 );
Switches viewport between split and top(bottom)/front(back)/right(left) mode according to location mouse cursor (only adjustment Michael's script):
Space=script:if ( moi.ui.mainWindow.viewpanel.mode != 'split' ) { moi.ui.mainWindow.viewpanel.mode = 'split' } else { var viewport = moi.ui.getViewportUnderMouse(); if ( viewport ) { switch ( viewport.name ) { case 'Bottom': viewport.viewpanel.mode = 'top'; break; case 'Back': viewport.viewpanel.mode = 'front'; break; case 'Left': viewport.viewpanel.mode = 'right'; break; default: viewport.viewpanel.mode = viewport.name } } };
Reverses all relevant viewports (Top->Bottom and so on):
Ctrl+Space=script:var viewport = new Array( 'Top', 'Front', 'Right' ); for ( a in viewport ) { moi.ui.mainWindow.viewpanel.reverseView( viewport[a] ) };
Petr
|