MoI discussion forum
MoI discussion forum

Full Version: Show Grid shortcut key

From: Fubax
21 Aug 2018   [#1]
What would be the command for Show Grid toggle under Grid Snap button?
Also, how do I find reference command for some UI buttons in the future?
From: Michael Gibson
21 Aug 2018   [#2] In reply to [#1]
Hi Fubax,

For toggling the grid put in the following as the command part of a shortcut key:
script: /* Toggle show grid */ moi.grid.display = !moi.grid.display;


re:
> Also, how do I find reference command for some UI buttons in the future?

There are several listed here:
http://moi3d.com/3.0/docs/moi_command_reference11.htm#shortcutkeys

If one you need isn't listed there then just post a question about it. To look it up directly you can also look at the definition of the button in .htm files inside the UI subfolder of MoI's main installation.

- Michael
From: Fubax
21 Aug 2018   [#3] In reply to [#2]
Thanks for the answer. I've also found some reference here http://moi.maxsm.net/api/