Hotkey for "Show View Controls"?

Next
 From:  NightCabbage
4026.1 
Hi

I'm just wondering, is there a command I can use to enable/disable the View Controls?

(the option I'm referring to is located under Options -> View -> Show view controls)

I'd like to be able to enable and disable this (either toggle, or by holding a key down) via a shortcut key.

Thanks!

-EDIT-

Oh, and I'd also like to make my toggle grid shortcut toggle the grid axes as well as the grid.

Currently:

script:moi.grid.display = !moi.grid.display;

(but I'm not sure if there's a command for the grid axes?)

EDITED: 4 Feb 2011 by NIGHTCABBAGE

  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
4026.2 In reply to 4026.1 
Hi NightCabbage, for toggling the view controls on or off with a keyboard shortcut, paste in the following as the command part of the shortcut key:

script: /* Toggle view controls */ moi.view.showViewControls = !moi.view.showViewControls;

Note that when you toggle them on they won't actually show until you move the mouse again.


For toggling both the grid axes and the full grid together with one key, use this:

script: /* Toggle grid and axis lines */ 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
 From:  NightCabbage
4026.3 
Perfect on both counts, thank you Michael! <3
  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