Hide and unhide grid,& XYZ Axes in one shortcut

Next
 From:  Elang
11736.1 
Hello everyone!

For illustration purposes, I often need to hide all the grid lines and XYZ axes before taking screenshots — and then show them again afterward.
Is it possible to automate this with a script and assign it to a single shortcut? If so, what would the script look like?

Thank you very much in advance!

– Elang
  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
11736.2 In reply to 11736.1 
Hi Elang, try this:

script: /* Show/hide grid and xy axes */ moi.grid.display = !moi.grid.display; moi.grid.showXYAxes = moi.grid.display;

- 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:  Elang
11736.3 
Works like a charm, Michael.

Thank you very much !
  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:  shayno
11736.4 
Hi There
If you use max s ui then you can right click the snap which turns off grid and lines for the output pictures

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
 

Reply to All Reply to All