realthunder / FreeCAD

Link branch FreeCAD
Other
775 stars 45 forks source link

[feature request] Hide nav cube with shortcut. #491

Open MisterMakerNL opened 2 years ago

MisterMakerNL commented 2 years ago

So Solidworks has this nav-cube that only gets shown when you press space twice. Which is pretty nice since you don't really need the nav-cube all that much. Also we can already make the nav-cube bigger so why not make it huge and then only use it when you hit a key. If it would hide automatically after you clicked on it would be a nice bonus but not necessary.
Example on how it works in Solidworks: https://www.youtube.com/watch?t=23&v=Lq4LeClPrGM&feature=youtu.be I not like trying to copy Solidworks, but this feature only requires a new key-bind and I though it would be an easy win.

I know you should be doing merge stuff, but this is way more fun. :) I managed to make a macro:

import FreeCAD
import FreeCADGui

param = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/View")

if param.GetBool('ShowNaviCube'):
  param.SetBool('ShowNaviCube',False)
    FreeCADGui.ActiveDocument.ActiveView.redraw()
else:
  param.SetBool('ShowNaviCube',True)
    FreeCADGui.ActiveDocument.ActiveView.redraw()   

It works pretty good although it lags, I do think this could be a good addition to main Freecad.

discip commented 1 year ago

@MisterMakerNL

  1. There is already an option to autohide the nav-cube.

  2. Additionally, you could configure a specific pie menu containing all the views you like.

MisterMakerNL commented 1 year ago

Could you explain this auto hide feature?

discip commented 1 year ago

@MisterMakerNL Just click the little box on the bottom right of the nav-cube and find the entry Auto hide. Hover over it and you will find 2 entries that can be ticked. If you check Navigation cube, the nav-cube will disappear as soon as you move the mouse away.