Hi Tim,
Here is the script I use for screenshots :
I set "Ctrl+Alt+S" as shortcut
script: /*Photo écran fond blanc 4000, 2500 linewidth : 4 */var prev_background = moi.view.viewportBackgroundColor; moi.view.viewportBackgroundColor = 0xFFFFFF; moi.view.lineWidth = 4; moi.grid.display = false; moi.grid.showXYAxes = false; moi.view.showAxisIcon = false; moi.view.showViewTitles = false; var img = null; try { img = moi.ui.getActiveViewport().render( 4000, 2500 ); } catch(e){} moi.view.lineWidth = 1; moi.grid.display = true; moi.grid.showXYAxes = true; moi.view.showAxisIcon = true; moi.view.showViewTitles = true; moi.view.viewportBackgroundColor = prev_background; var name = img.getSaveFileName(); if ( name != '' ) img.save( name );
You can change the render size to your convenience by entering different values in "render(4000,2500)"
I don't remember the emplacement of the script under the camera button though since I do not use this environment setup anymore.
I hope this can be useful to you.
|