Custom shortcut
All  1  2

Previous
 From:  Michael Gibson
4559.2 In reply to 4559.1 
Hi DesuDeus, see this previous post for a description on some various script methods that can be combined like that:
http://moi3d.com/forum/index.php?webtag=MOI&msg=1049.32

So one that does what you want would be like this:

script: /* Custom screenshot */ var prev_background = moi.view.viewportBackgroundColor; moi.view.viewportBackgroundColor = 0xFFFFFF; moi.view.lineWidth = 4; moi.grid.display = false; moi.grid.showXYAxes = false; moi.ui.getActiveViewport().renderToClipboard( 2560, 2560 ); moi.view.lineWidth = 1; moi.grid.display = true; moi.grid.showXYAxes = true; moi.view.viewportBackgroundColor = prev_background;


This one uses the renderToClipboard() method which generates an image of a custom resolution (2560x2560 in the above one) and places it directly in the clipboard.

Because it's going to a high resolution it also temporarily increases the line width of the display as well - if you take that part out you can get an effect of fainter lines if you then resize the image down.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2