Script request

Next
 From:  shayno
11140.1 
Hi Michael

I am still using ver 3 but its so customised now that I cannot face the upgrade to ver 4 but it works perfectly for my needs.
I am using Max's Customui UI for snapshots of the active window that I typically take with gridlines off at 3200x2400
I am after a script or the code to overwrite into 84 Snapshot.htm in custom ui folder
To save me the same snapshot as above but saving all 4 views as 4 x individual jpg's in one button press to go to the snapshot folder.
Is this possible please as it would save me a lot of time.

cheers
shayne

EDITED: 3 Jul 2023 by SHAYNO

  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
11140.2 In reply to 11140.1 
Hi shayne,

re:
> I am after a script or the code to overwrite into 84 Snapshot.htm in custom ui folder

Can you please post your current "84 Snapshot.htm" file?

- 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:  shayno
11140.3 In reply to 11140.2 
here you go thanks opps I think uploaded twice

  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
11140.4 In reply to 11140.3 
Hi shayne, please try this edited version.

- Michael
Attachments:

  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
11140.5 In reply to 11140.4 
Fantastic thanks Michael
that works perfectly and is super useful
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
Next
 From:  shayno
11140.6 
Hi Michael

is there a chance my save.js can be changed to switch view to 3d view and save this view as the sceenshot please
Kind regards
shayne

current save.js
/// 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' ); }
  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
11140.7 In reply to 11140.6 
Hi shayne,

re:
> is there a chance my save.js can be changed to switch view to 3d view and save this view as the sceenshot please

The code for switching to the maximized 3D view is like this:

code:
moi.ui.mainWindow.viewpanel.mode = '3D';


So try putting that in before the moi.view.screenshot() call.

- 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:  shayno
11140.8 In reply to 11140.7 
Perfect thanks 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:  shayno
11140.9 In reply to 11140.8 
Last one I promise for ver 3

script to hide all curves

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:  Michael Gibson
11140.10 In reply to 11140.9 
Hi shayne,

re:
> script to hide all curves

Try the one from here:
http://kyticka.webzdarma.cz/3d/moi/#HideCurves

- 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
 

Reply to All Reply to All