Hotkey and UI requests

 From:  Michael Gibson
5141.10 In reply to 5141.9 
Hi Rich, here are some scripts that you can assign to shortcut keys that I think handle what you are asking about:


Sets maximized 3D view and sets the 3D view's projection to perspective:

script:/* Set perspective 3D view */ moi.ui.mainWindow.viewpanel.getViewport('3D').projection = 'Perspective'; moi.ui.mainWindow.viewpanel.mode = '3D';


Sets maximized 3D view and sets the 3D view's projection to parallel:

script:/* Set parallel 3D view */ moi.ui.mainWindow.viewpanel.getViewport('3D').projection = 'Parallel'; moi.ui.mainWindow.viewpanel.mode = '3D';


Zoom extents to select objects only (will not switch to zoom all if triggered a second time):

script:/* Zoom extents selected */ var vp = moi.ui.getActiveViewport(); vp.zoom( 0.9 ); vp.reset();


Zoom extents to all objects only (will not switch to zoom selected if triggered a second time):

script:/* Zoom extents all */ var vp = moi.ui.getActiveViewport(); vp.zoom( 0.9 ); vp.reset(); vp.reset();



Let me know if you have any problems with those.

- Michael