Screenshot shortcut problems

 From:  Michael Gibson
5381.4 In reply to 5381.3 
Hi DesuDeus, sorry that's what I get for writing in a hurry and not testing code - what I wrote before was incorrect - it was saving and restoring the value but not actually setting the new value.

Try this:

script: /* Custom screenshot */ var prev_background = moi.view.viewportBackgroundColor; moi.view.viewportBackgroundColor = 0xFFFFFF; moi.view.lineWidth = 3; moi.grid.display = false; moi.grid.showXYAxes = false; moi.view.showAxisIcon = false; moi.view.meshAngle = 3; moi.ui.getActiveViewport().renderToClipboard( 4000, 2500 ); moi.view.lineWidth = 1; moi.grid.display = true; moi.grid.showXYAxes = true; moi.view.showAxisIcon = true; moi.view.meshAngle = 8; moi.view.viewportBackgroundColor = prev_background;


So these parts before the screenshot should set the values you want for the screenshot: moi.view.showAxisIcon = false; moi.view.meshAngle = 3;

And these parts here set it to the values you want at the end: moi.view.showAxisIcon = true; moi.view.meshAngle = 8;


Let me know if that's still not working right.

- Michael