Render to Clipboard (Linework)
All  1-2  3-6

Previous
Next
 From:  BurrMan
5927.3 In reply to 5927.1 
Here is a script that Ambimind made to help him get a line result. It works pretty good:

http://moi3d.com/forum/index.php?webtag=MOI&msg=1049.33

I think you can fool with the lineweight numbers to get different results.
  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:  D_Aitken92 (DAITKEN)
5927.4 
Sorry! Very stupid of me. I have been using MOI3d with a huge list of shortcuts given to me by work and forget that they don't come preset. Oops!

The script we use to create the outline view is,

moi.view.shadeMode = (moi.view.shadeMode == 'HiddenLineWireframe' ? 'Shaded' : 'HiddenLineWireframe');

However, using this script along side it would be very useful.

var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 0.5; moi.view.shadeMode = 'Shaded'; v.renderToClipboard(3000,2000 ); moi.view.lineWidth = 0.5; moi.view.shadeMode = 'Shaded'; }

At the moment if activated when the first script is running, it disables it and screenshots the shaded view again.

Many thanks for the quick response once again Michael.

Cheers,

David.
  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:  Michael Gibson
5927.5 In reply to 5927.4 
Hi David, thanks for posting the scripts! So the problem is that particular screenshot script is specifically setting the shading mode to plain shaded. If that part is removed then it should function like you want. The parts that need to be removed are the pieces that say: moi.view.shadeMode = 'Shaded';

So you would want to have your screenshot script be like this instead:

script: /* Generate hi res screenshot to clipboard */ var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 0.5; v.renderToClipboard(3000,2000 ); moi.view.lineWidth = 0.5; }


If you use this version instead, I think it should behave how you want, please let me know if it still does not.

- 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
 From:  D_Aitken92 (DAITKEN)
5927.6 In reply to 5927.5 
Amazing!

Thank you very much!

David.
  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  3-6