Screenshots
All  1-9  10-14

Previous
Next
 From:  Michael Gibson
4699.10 In reply to 4699.9 
Hi Felix, the stuff about changing styles sounds pretty complex, I'm not sure if that is really within the scope of a simple script, but doing stuff for setting the lighting to a particular setting and turning the grid off, and then taking the snapshot and then turning the lighting and grid back to what they were before is feasible, some scripts for that are in those links I posted above. Is that still something that you want to set up on a keystroke? Let me know if that level of stuff is still useful for you and if you need any help setting up a script that does that part.

- 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:  FelixPQ (FELIX)
4699.11 In reply to 4699.10 
Michael,

sorry, I digressed a little. At first I thought of using a script to automate a few things but I got carried away to say the least. The proposed scripts will do fine.

Thanks Michael,
Felix
  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:  Marc (TELLIER)
4699.12 In reply to 4699.11 
Hi Felix, I meant "rendering" as in constructing it in real!

Marc
  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:  FelixPQ (FELIX)
4699.13 In reply to 4699.12 
Mark,

I see what you mean and I'd love that to. Something like this would probably take me at least six month to build and cost me a fortune, it's quite large. Unless it's sold before I don't think it will ever see the light of day. But an excellent render of it might help sell it in a virtual showroom that I intend to do one day on my site.

Thanks again,
Felix
  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
4699.14 In reply to 4699.11 
Hi Felix, here's a script that you can put on a shortcut key which should do the following process -

First it stores the current viewport background color

Then it sets the background color to black.

Then it sets the line width to 4 pixels wide.

Then it turns the grid and grid axis lines off.

Then it generates a snapshot of the viewport to the clipboard, at a resolution of 2560x2560

Then it restores line width, the viewport background color and turns the grid display back on:



script: /* Custom screenshot */ var prev_background = moi.view.viewportBackgroundColor; moi.view.viewportBackgroundColor = 0x000000; 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;



To set that up, go to Options > Shortcut keys and add in a new one, and in the command part paste in the above script.


It's also possible to switch lighting settings around in the script just for the screenshot and then back again - if you'd like it to do that I'd need to know the particular settings that you want to be used.

- 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-9  10-14