Moi Version 4
 1-20  21-25

Previous
Next
 From:  Michael Gibson
8779.21 In reply to 8779.20 
Hi Dimitri, you can set whatever resolution you want by changing the numbers in the shortcut script.

From the link I posted above (http://moi3d.com/forum/index.php?webtag=MOI&msg=1049.5) this is the script you paste into a shortcut key:

script:var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 4; v.renderToClipboard( 2560, 2560 ); moi.view.lineWidth = 1; }

That will make a viewport image of width = 2560, height = 2560 in the system clipboard so you can paste it into an image editing program.

But if a 2560x2560 image is not a good size for you, just change those 2 numbers in the script. If you are making it pretty low resolution you may also want to edit the linewidth = 4 to just lineWidth = 1 .

There is also a different screenshot mechanism in MoI that will be taken directly from the screen so you'll get just what you see on your monitor. Most people don't like to use that for print since printing can handle much higher resolutions than the screen. But that one goes like this - go to Options > Shortcut keys, add in a new shortcut key and for the command paste in this:

script:var img = moi.view.screenshot( 'viewpanel', false ); var name = img.getSaveFileName(); if ( name != '' ) img.save( name );


Then when you push that shortcut key you should be able to save an image of exactly what you are seeing on screen.

- 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:  Michael Gibson
8779.22 In reply to 8779.20 
Hi Dimitri,

> And not to forget: how do we install such scripts in Moi? Any guide somewhere?

For all the ones that I have posted above, you use copy/paste to paste the script code directly into the "Command" part of a shortcut key.

The process for that is - select the line of script text in your web browser. Use Ctrl+C to copy it to the system clipboard.

Now in MoI open up the Options dialog and go to the "Shortcut keys" section. Use the "Add" button to add in a new shortcut key, it will appear at the top of the list. There are 2 parts to each shortcut key, which is represented by 2 columns. The left column labeled "Key" is whatever key you want to trigger the action, like maybe for a screenshot you can use the S key so put in S in that left hand column.

Then the right-hand column contains the command name to run for that shortcut key. You can click in there and use Ctrl+V to paste in the line of script code that you previously copied from here.

Once you have set up a shortcut key with that script as the command part, you will be able to activate that script while you are running MoI by using whatever keyboard key you decided to set in the "Key" column.

Hope that helps!

- 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:  mkdm
8779.23 In reply to 8779.20 
You're welcome Dimitri.

Ciao!

- Marco (mkdm)
  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:  Rainydaylover (DIMITRI)
8779.24 
Thanks Michael, it is ok! : - )
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 8779.25 deleted 2 Feb 2018 by ALEXTESTING
 

Reply to All Reply to All

 

 
 
Show messages:  1-20  21-25