Save as including screenshot

Next
 From:  TOM (SIRTOM)
7998.1 
Hi,

I searched the forum but did not find the script / command for :

Save the 3dm file including a screenshot-jpg with the same name.

Any tips ?
  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:  hep
7998.2 In reply to 7998.1 
  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:  TOM (SIRTOM)
7998.3 In reply to 7998.2 
>> // config: norepeat
moi.geometryDatabase.saveAs( moi.command.getCommandLineParams() );
script:var img = moi.view.screenshot( 'viewpanel', false ); var filename = moi.geometryDatabase.currentFileName; if ( filename != '' ) { img.save( filename.substring(0,filename.length-3) + 'jpg' ); } >>

Should I paste the whole text into the shortcut menu ? I tried it but does not work this way for me

EDITED: 21 Jun 2016 by SIRTOM

  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:  BurrMan
7998.4 In reply to 7998.3 
Thats not a script, it's a command. Put it in a js file with a name. The name goes in a shortcut area. (Without the dot js part)
  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:  TOM (SIRTOM)
7998.5 In reply to 7998.4 
Thankyou Burrman great tip - it works perfectly now !
  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:  shayno
7998.6 
Hi

If you save it into the save.js

when you save your file it will also save the jpg with it as below
For saveas.js change the save() to saveas()

/// config: norepeat

moi.geometryDatabase.save();
script:var img = moi.view.screenshot( 'viewpanel', false ); var filename = moi.geometryDatabase.currentFileName; if ( filename != '' ) { img.save( filename.substring(0,filename.length-3) + 'jpg' ); }

cheers
shayne
  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:  TOM (SIRTOM)
7998.7 In reply to 7998.6 
Good to know - 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