Export to JPEG?

 From:  Michael Gibson
7542.2 In reply to 7542.1 
Hi Bob,

> Might an export to JPEG option become available in MOI's next release?

It's actually available right now by setting up a shortcut key with a script on it.

Go to Options > Shortcut keys, and add in a new one, for the key put in whatever key you want to trigger it, and for the command part paste in the following:


script:/* Save snapshot to image file */ var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 4; var img = v.render( 2560, 2048 ); moi.view.lineWidth = 1; var name = img.getSaveFileName(); if ( name != '' ) img.save( name ); }



You can alter the values for 2560, 2048 to control the width and height of the generated image.

This version will pop up a file dialog and ask you for a file name to save, you can type in a filename with a .jpg extension and that will save it as a JPEG type file, or you can set the file type dropdown as another way to make a JPEG file type.


You can also set up a different script which will render the view and put the image into the clipboard so you can paste it into an image editing program, for that one see here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=1049.5

- Michael