Screenshot shortcut problems
All  1-3  4-6

Previous
Next
 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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Samuel Zeller
5381.5 In reply to 5381.4 
Yay ! Now my 2D workflow is complete !

I can quickly design in 2D, take screengrabs, put them all in a single A3 sheet for the client then tweak the final choice in Illustrator for gradients/colors :)

Awesome ! There's just that tiny viewport name detail (is it possible to remove it completly by editing an html file somewhere or the MoI CSS ?) and transparent background and then it will be perfect.

Thanks a lot Michael, you know how to keep your customers happy ^^
-- shapenoid.com
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
5381.6 In reply to 5381.5 
Hi DesuDeus,

> Awesome ! There's just that tiny viewport name detail (is it possible to remove it completly
> by editing an html file somewhere or the MoI CSS ?)

No, that part is drawn by MoI's 3D rendering code and not by the HTML UI engine.

So that particular thing is not controlled by any CSS or HTML files.

- 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-3  4-6