Michael -
I'm using your keyboard script below to save a screenshot of my models, on a plain white background, as PNG.
Can it be modified to:
1) Save it on a transparent background?
2) Save it to the clipboard rather than to a file?
I'm working on a technique to replicate a particular illustration style using Affinity Photo.
I can get the shaded model on a transparent background by saving as a PDF, but saving to clipboard would eliminate a couple of steps as AP can create a new file or layer directly from the clipboard.
Ed Ferguson
script: 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 );
|