MoI discussion forum
MoI discussion forum

Full Version: Hide and unhide grid,& XYZ Axes in one shortcut

From: Elang
15 May   [#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
From: Michael Gibson
15 May   [#2] In reply to [#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
From: Elang
15 May   [#3]
Works like a charm, Michael.

Thank you very much !
From: shayno
25 May   [#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