Ok here is an idea, that maybe or maybe not looks very similar to something that is already on the market.
The idea is too hide the nav cube by default and then when you need it, you hit space twice and it pop-ups into view really big.
Then you set the correct view and it hides again. Example on how this might look: https://youtu.be/Lq4LeClPrGM?t=23
Since we already can make the nav-cube bigger, I only need some way to hook it up to the spacebar to hide or show it. Maybe an auto-hide would be nice.
Short-key to show nav-cube?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- MisterMaker
- Posts: 746
- Joined: Mon Sep 21, 2020 7:41 am
- Contact:
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Short-key to show nav-cube?
spacebar is already used for a shortcut in FreeCAD so it might not be a good idea.
if you mean to have this as default behavior on FreeCAD master I disagree entirely, I like the current behavior better than solidworks, I do like the bigger corners and offset backfaces it has though.hide the nav cube by default
- MisterMaker
- Posts: 746
- Joined: Mon Sep 21, 2020 7:41 am
- Contact:
Re: Short-key to show nav-cube?
Not as default but the way I see it, this can be implemented with minimal effort as an option. Just add auto hide option and a key bind.
I'll try if I can make a macro that can do this.
I'll try if I can make a macro that can do this.
- MisterMaker
- Posts: 746
- Joined: Mon Sep 21, 2020 7:41 am
- Contact:
Re: Short-key to show nav-cube?
I was hoping this was just a simple command that would pop-up in a macro recording but seems like the macro doesn't record any settings changed in the settings menu.
Any here know how to turn off the navcube in a macro?
This is the nav cube cpp
https://github.com/FreeCAD/FreeCAD/blob ... viCube.cpp
Any here know how to turn off the navcube in a macro?
This is the nav cube cpp
https://github.com/FreeCAD/FreeCAD/blob ... viCube.cpp
Re: Short-key to show nav-cube?
Code: Select all
import FreeCAD
import FreeCADGui
param = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/View")
param.SetBool("ShowNaviCube", True)
FreeCADGui.ActiveDocument.ActiveView.redraw()
- MisterMaker
- Posts: 746
- Joined: Mon Sep 21, 2020 7:41 am
- Contact:
Re: Short-key to show nav-cube?
That is awesome thanks! That was enough for me to get it working ended up with:Roy_043 wrote: ↑Mon Jul 11, 2022 2:41 pmCode: Select all
import FreeCAD import FreeCADGui param = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/View") param.SetBool("ShowNaviCube", True) FreeCADGui.ActiveDocument.ActiveView.redraw()
Code: Select all
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()
Can see it work here:
https://twitter.com/MisterMakerNL_/stat ... 0488114177