Hi Burr, probably what you're seeing is that script is using a square for the pixel dimensions, that's the ( 2560, 2560 ) part. Probably your regular on screen viewport is not square, it's probably a wide rectangle.
That script is not exactly an on-screen capture, the call the renderToClipboard sets up a kind of in-memory window of the given pixel dimensions and then draws things into that and then puts that on to the system clipboard.
If you modify the script to be something closer in aspect ratio to your regular viewport dimensions it will probably work better for you, try something like (2560, 1920) .
Or maybe instead of generating an image to a specific custom width and height you'd rather do an actual direct screen capture, that would be like this:
script: /* take screenshot and save to file */ var img = moi.view.screenshot( 'viewpanel', false ); var name = img.getSaveFileName(); if ( name != '' ) img.save( name );
The one that takes a custom resolution one was originally meant so that you could generate an image that was larger than your montior, instead of being limited to just directly what you see on screen. But your screen is large enough that you're probably fine doing a direct screenshot.
- Michael
|