Solved the positioning issue! I might be better to adapt some numbers to the screen, they're at lines 161 to 166. Attached the fixed copy.adrianinsaval wrote: ↑Sun May 12, 2019 6:05 pm Hi, I'm currently using it on windows 10 with the Tree view and it works great! However, I have to manually press q+1 or q+2 every time I startup Freecad, can this be automated? It does not show at all unless you press q+1 or q+2.
On a side note, can this be used simultaneously in more than one panel? Anyway, thanks for such a great addon!
EDIT:
Got it how I wanted with a few twitches. It automatically gets in Glass mode by adding setMode() after line 176 in GlassGui.py (use setVisibility instead if you want it to show but not in Glass mode).
I got it to work on 2 panels by copy/pasting GlassGui.py and importing the copy in InitGui.py. Had to twitch the positioning so they don't overlap and change the key combinations on the copy. Also changed LeftDockWidgetArea for RightDockWidgetArea at line 146 for personal preference.
There probably is a better way to do this since right now the tree view can be out of view if the window is resized. Sadly, I don´t really know any python to fix this. Attached are my modified files for anyone interested, they go into the Mod/Glass folder.
On a different note, anyone knows how to get rid of the tree in the combo view? or how to permanently move the navigation cube a little to the left?
Glass
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Glass
- Attachments
-
- GlassGui2.py
- (4.66 KiB) Downloaded 173 times
Re: Glass
Have you ever tried to use Github ? FreeCAD repository lives on it. So does Glass. It's easier/ 'more convenient' to review code using it.
Check out the FC wiki github page
Check out the FC wiki github page
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Glass
I just don't think my little twitches justify a pull request or a fork. It's just my taste and I shared in case someone liked it.
Re: Glass
Hi @OficineRoboticaOficineRobotica wrote: ↑Sat May 11, 2019 4:48 am Hello @Triplus. Any news on the glass addon side? i've been waiting for a bump in version and now i'm on kubunrtu 19.04 and freecad-daily from the ppa but it seems that the problem with the black background persists.
I didn't have much free time for Glass module in the past few weeks. Before that i did a bit of research and narrowed the issue down a bit. On KDE, when applying a stylesheet, an issue (black background) emerges. Didn't determine yet if it's a KDE or Qt related issue, or something else is involved, and if a possible workaround exists. Will try to determine that in the following days.
Hi @adrianinsaval
Yes, the change could be made persistent (cross restart) and i did actually implemented a few toggle modes already. But due to not yet resolving KDE issue i didn't have much motivation to push the changes just yet. Will work on that in the following days and in addition i will review your proposals more in depth. Thanks for contributing.
Re: Glass
X-post New macro, Vision1, check it out thread. This macro uses a different approach to the FreeCAD viewing experience. May well be a useful methodology for the Glass WB.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- OficineRobotica
- Posts: 433
- Joined: Thu Feb 21, 2019 8:17 am
- Contact:
Re: Glass
I'm having problems setting the things as i want them to with the latest dev appimage. My laptop gave up and it needs to go to be repaired and i had to re set up everything on my tower pc. When I try to activate glass , but with the "tree view" modification it gives me this error
Strangely , even the View>Pannels menu is missing the tree view option to be activated.
I remember using the same version on my laptop and the tree view option was present. I'm confused and i might be wrong but pls help. I was so accustomed to that layout that it feels so awkward now with only the combo view
Code: Select all
Traceback (most recent call last):
File "/home/flo/.FreeCAD/Mod/Glass/GlassGui.py", line 137, in setMode
dock.setParent(mdi)
AttributeError: 'NoneType' object has no attribute 'setParent'
Strangely , even the View>Pannels menu is missing the tree view option to be activated.
I remember using the same version on my laptop and the tree view option was present. I'm confused and i might be wrong but pls help. I was so accustomed to that layout that it feels so awkward now with only the combo view
Code: Select all
OS: KDE neon User Edition 5.16 (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18009 (Git) AppImage
Build type: Release
Branch: master
Hash: 0641ca0d1e020d18f23d2adb49959195266f04f7
Python version: 3.7.3
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
Check out my Youtube channel at: https://www.youtube.com/@OficineRobotica
- OficineRobotica
- Posts: 433
- Joined: Thu Feb 21, 2019 8:17 am
- Contact:
Re: Glass
@triplus
No worries and no rush. I'm aware that this is a really busy time for the devs with the merge and all that it is surrounding it. This is really a minor minor issue.
The thing is that I don't think that it is a glass module problem. It's just that the app image is missing the tree view option in the view>panels menu. I remember this was a issue some time ago and it was reintroduced( I don't remember if it was a regression or if it was eliminated as an option) . Going forward towards assemblies a clear view of the tree view is always welcomed.
Thank you for always being present.
Cheers
No worries and no rush. I'm aware that this is a really busy time for the devs with the merge and all that it is surrounding it. This is really a minor minor issue.
The thing is that I don't think that it is a glass module problem. It's just that the app image is missing the tree view option in the view>panels menu. I remember this was a issue some time ago and it was reintroduced( I don't remember if it was a regression or if it was eliminated as an option) . Going forward towards assemblies a clear view of the tree view is always welcomed.
Thank you for always being present.
Cheers
Check out my Youtube channel at: https://www.youtube.com/@OficineRobotica
Re: Glass
I took a quick look and indeed there is no Tree and Property view by default anymore:
https://forum.freecadweb.org/viewtopic. ... 13#p331713
If you will read the discussion, there likely still is a way to enable both (using parameter). I didn't test it yet, as best to hear some rationale first, on why they got disabled by default.
https://forum.freecadweb.org/viewtopic. ... 13#p331713
If you will read the discussion, there likely still is a way to enable both (using parameter). I didn't test it yet, as best to hear some rationale first, on why they got disabled by default.
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: Glass
Use Parameter editor to create an 'Enable' parameter under User->Preferences->DocWindows->TreeView (PropertyView), and set it the True. Restart FreeCAD. I think it is wmayer disabled it? Not sure though.