Modifying this script to save screenshot to file?
All  1-6  7

Previous
 From:  chippwalters
7655.7 In reply to 7655.6 
YAY Max!

Works PERFECTLY! :-)

For those who don't want to remove the CRs:

code:
script: /* Save to PNG */ var vp = moi.ui.getLastClickedViewport(); if (!vp) { vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); } var filename = moi.filesystem.GetSaveFileName( 'Save', ' (*.png)|*.png' ); var st = [], settings  = ["view.viewportBackgroundColor", "view.lineWidth", "grid.display", "grid.showXYAxes", "view.showAxisIcon", "view.meshAngle"]; for (var sv in settings) { st.push(moi[settings[sv].split('.')[0]][settings[sv].split('.')[1]] ); }  moi.view.viewportBackgroundColor = 0xFFFFFF;  moi.view.lineWidth = 3;  moi.grid.display = false;  moi.grid.showXYAxes = false;  moi.view.showAxisIcon = false;  moi.view.meshAngle = 3;  vp.render( 4000, 2500 ).save(filename); for (var sv in settings) { moi[settings[sv].split('.')[0]][settings[sv].split('.')[1]] = st.shift(); }

EDITED: 6 Oct 2015 by CHIPPWALTERS

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