Sometimes, I put certain variables in the front of the script, if I think I might need to change them.
My clipboard image script looks like...
script: /* CAPTURE RENDER */ var w = 3000; var h = 2000; var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 0; moi.grid.display = false; moi.view.meshAngle = 5.0; moi.grid.showXYAxes = false; moi.view.showHiddenLines = false; v.renderToClipboard(w, h); moi.view.lineWidth = 1; moi.grid.display = true; moi.view.meshAngle = 10.0; moi.grid.showXYAxes = true; moi.view.showHiddenLines = true; }
...and it's so easy for me to change the render size now. I just change w and h to whatever resolution I want.
|