Glass

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Glass

Post by adrianinsaval »

drucken
Posts: 34
Joined: Tue Mar 23, 2021 9:17 am

Re: Glass

Post by drucken »

Ok, thanks! I'll wait it out then 8-)

If anyone knows how to completely "disable" the whole Glass dock background in GlassGui.py - that would be amazing. I tried some hours but failed (my first ever try in python) :lol:
mangelbar
Posts: 1
Joined: Mon Aug 16, 2021 8:49 am

Re: Glass

Post by mangelbar »

Kunda1 wrote: Sat Jan 23, 2021 1:43 pm
farahats9 wrote: Sat Jan 23, 2021 2:02 am I just made a pull request fixing the issue of text transparency when renaming a node. I hope triplus would merge it.
https://github.com/triplus/Glass/pull/6
@triplus has been 'off the radar' for a while now. I'll talk to yorik and we'll clone his repos so issues can be addressed
I have the same problem: when trying to rename nodes in the tree the text is blurred between the new and the old.
Svajunas
Posts: 1
Joined: Tue Apr 18, 2023 12:42 pm

Re: Glass

Post by Svajunas »

Hi guys,
After the Glass add-on installation, around the application tree, there is some white small frame. Anyone had that issue before, and how it can be solved? It's not effecting work at all, just annoying..
Attachments
Screenshot 2023-04-19 at 12.39.42.png
Screenshot 2023-04-19 at 12.39.42.png (88.9 KiB) Viewed 2281 times
GigiG
Posts: 104
Joined: Mon Feb 17, 2014 9:07 am
Location: Torino, Italy
Contact:

Re: Glass

Post by GigiG »

Hi, anyone know how to resize (expand) the Tree window? It cuts the names if the Tree hierarchy is big ...
Screenshot at 2023-05-29 15-17-48.png
Screenshot at 2023-05-29 15-17-48.png (32.25 KiB) Viewed 2012 times

Code: Select all

OS: Linux Mint 21.1 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.21.
Build type: Release
Branch: unknown
Hash: 1faf86c3da12c1712e1d5ec015721d9aa02f8672
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods: 
  * Manipulator 1.5.0
  * Dracula 0.0.4
  * ExtremeProDark 2.8.0
  * ProDarkThemePreferencePack 1.0.0
  * Glass
  * Render 2023.2.5
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Glass

Post by Syres »

GigiG wrote: Mon May 29, 2023 1:20 pm Hi, anyone know how to resize (expand) the Tree window? It cuts the names if the Tree hierarchy is big ...
It is supposed to resize automatically but if not change around line 191 of Mod/Glass/GlassGui.py from:

Code: Select all

        w = mdi.geometry().width() / 100 * 20

to

Code: Select all

        w = mdi.geometry().width() / 100 * 40
Restart FreeCAD and if necessary try pressing the Q key and the 1 key together twice in succession, on my machine the auto resize took a couple of seconds.

Code: Select all

OS: Windows 7 build 7601
Word size of FreeCAD: 64-bit
Version: 0.21.0.33321 (Git)
Build type: Release
Branch: master
Hash: 1d61ed187c9633702818c6cc5d7a1f07dd052ca8
Python 3.8.16, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * A2plus 0.4.60f
  * Alternate_OpenSCAD 1.0.0
  * Assembly3 0.11.4
  * Assembly4 0.12.6
  * CfdOF 1.20.4
  * Curves 0.6.6
  * fasteners 0.4.54
  * fcgear 1.0.0
  * freecad.xray 2022.4.17
  * FreeCAD_Turning_Addon 0.1.0
  * Glass
  * Help 1.0.3
  * Manipulator 1.5.0
  * PitchedRoof
  * Plot 2022.4.17
  * Render 2023.2.2
  * sheetmetal 0.2.63
  * Silk 1.0.0
  * timber
  * workfeature
GigiG
Posts: 104
Joined: Mon Feb 17, 2014 9:07 am
Location: Torino, Italy
Contact:

Re: Glass

Post by GigiG »

Sorry, another question. I got an issue using FreeCAD Std Alignment having Glass Addon installed:
viewtopic.php?p=684857#p684857
mrwolfe
Posts: 6
Joined: Wed Sep 02, 2020 7:23 am

Re: Glass

Post by mrwolfe »

Very nice addon, although I have run into a snag. The area used for the overlay is off limits to the mouse. You can't drag anything into that area, you can't centre-click to rotate or pan. It's like there is an invisible panel overlaid on the viewport. You can click on the items in the tree, but not anything in the main viewport.
User avatar
obelisk79
Veteran
Posts: 1061
Joined: Thu Sep 24, 2020 9:01 pm

Re: Glass

Post by obelisk79 »

mrwolfe wrote: Fri Sep 22, 2023 12:50 am Very nice addon, although I have run into a snag. The area used for the overlay is off limits to the mouse. You can't drag anything into that area, you can't centre-click to rotate or pan. It's like there is an invisible panel overlaid on the viewport. You can click on the items in the tree, but not anything in the main viewport.
That is correct, it is the main flaw with the addon. It just takes the treeview panel and makes the background transparent but doesn't pass mouse interactions through the transparency to whatever is underneath. I've tried several approaches to modify the python for for this to add that functionality but have had no luck.
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Glass

Post by onekk »

obelisk79 wrote: Fri Sep 22, 2023 2:28 am ...
I've tried several approaches to modify the python for for this to add that functionality but have had no luck.
Obviously you could select the most "external surface" so if a surface is hidden by another surface it is complicated to tell the Selection mechanism to ignore this.

I've used sometimes in FreeCAD a trick "make a line" and check which solids it intersects.

But I don't know how this approach could be done in Coin, as probably it has to be done when hovering the mouse over the 3d view.

Maybe @wmayer could help on some extent.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply