Script to generate viewport image question

Next
 From:  Matadem
11253.1 
Good day
Since the export to pdf option does not export with an image...as far as I know.
I found this post but I cannot get it to work >>http://moi3d.com/forum/index.php?webtag=MOI&msg=9526.173

I am trying to skip unnecessary steps instead of exporting my moi drawing to pdf then importing into another program and the try to align the needed image to make it look good with my drawing.
any other faster way to do this?

Tnx
  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
11253.2 In reply to 11253.1 
Hi Matadem, try this:

script:var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 4; var img = v.render( 2560, 2560 ); moi.view.lineWidth = 1; var name = img.getSaveFileName(); if ( name != '' ) img.save( name ); }

- 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:  Matadem
11253.3 
It works nice and fast...
a few more questions... can it be done with a white background? without any axis lines?
Can it be done with a transparent background? the reason for this if it is possible to put the 3d model in front of a picture to see what the end product would look like.

and last one can Moi export to pdf or an image format in all views at once ...or 2 views?

Thank you!
  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
11253.4 In reply to 11253.3 
Hi Matadem,

> a few more questions... can it be done with a white background? without any axis lines?

Yes, try the one on this message:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9787.2


> Can it be done with a transparent background?

Sorry no the viewport display mechanism is only set up to display on a solid color background.


> and last one can Moi export to pdf or an image format in all views at once ...or 2 views?

Not currently. However, there is a script you can set up which can generate the curves for all views and then you can export those:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8041.1

- 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:  Matadem
11253.5 
Now its even better :D
I set my perspective on the image I need in affinity...then send it to Moi to set the model the way I want with the picture...
Then snapshot and save...crop if I need it to...way faster.

Thanks!
  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