Save image with file

Next
 From:  777RAVEN777
10390.1 
I know this has been discussed before - I used to have a script that automatically saved an image file (.jpg or .png - I cant remember which) in the same folder as the Moi3d file - and updated it as the file was saved.
Anyone know what that might be?
Cheers in advance :)
  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:  777RAVEN777
10390.2 
BTW I'm using Moi v3 ;)
  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:  John (OKEN)
10390.3 In reply to 10390.1 
CaptureScreenToFile – you can use this script to save a screenshot out to an image file by using a shortcut key, without needing to run any other program.

Alt+S script:var img = moi.view.screenshot( 'viewpanel', false ); var name = img.getSaveFileName(); if ( name != '' ) img.save( name );
  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:  777RAVEN777
10390.4 In reply to 10390.3 
Thanks for that ;)
This is the one that just automatically saves an image file & updates it as you save the model, right?
  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:  Phiro
10390.5 
If you want to save your model AND the image in the same time, you could add this line in the save.js and the saveas.js script files.
  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:  777RAVEN777
10390.6 In reply to 10390.5 
You mean this one?
script:var img = moi.view.screenshot( 'viewpanel', false ); var name = img.getSaveFileName(); if ( name != '' ) img.save( name );
  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:  Phiro
10390.7 
Yes

Add this line to your two scripts save.js and saveas.js
  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