STEP Export/Import colors override (?)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: STEP Export/Import colors override (?)

Post by easyw-fc »

user1234 wrote: Wed Oct 13, 2021 4:33 pm Or replace transparency with alpha. OK, i stop. I am way too picky.
I wouldn't suggest so...
IMO Transparency is a long established value in Combo view for shapes... changing this would change the user's habit

Assigning instead the Transparent 0-100% to faces in the set color view would be a new mode, but aligned to the old Transparency value assigned to shapes.
User avatar
thomas-neemann
Veteran
Posts: 11940
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: STEP Export/Import colors override (?)

Post by thomas-neemann »

andr.syn wrote: Thu Sep 09, 2021 11:02 pm
i have not read through everything because it has not yet been identified as solved, here is a note that realthunder has solved the problem in its latest version. I have tested it (export)

https://github.com/realthunder/FreeCAD_ ... 3/releases


OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.1015.24301 +4280 (Git) AppImage
Build type: Release
Branch: LinkDaily
Hash: 556c87868ea46796242156e9f73eae98259794b7
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.2
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: STEP Export/Import colors override (?)

Post by uwestoehr »

chennes wrote: Mon Oct 11, 2021 1:52 am May as well add the last bit, I suppose! Please have a look at PR 5106.
Many thanks. This is a very useful feature. I wanted to document it and thus played with it and see that the feature is missing in other places. here 2 examples:

- right-click on a part in the tree view and then select "Appearance".
- Preferences -> Display -> Colors

Will you add the transparency feature also to these?
I can also do some of this work the next days if you like since I guess it is only adding the line

Code: Select all

colorButton->setAllowTransparency(true);
to the different color boxes and the change in

Code: Select all

color.setRgbF
, right?
User avatar
chennes
Veteran
Posts: 3914
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: STEP Export/Import colors override (?)

Post by chennes »

uwestoehr wrote: Fri Nov 05, 2021 7:34 pm I can also do some of this work the next days if you like since I guess it is only adding the line

Code: Select all

colorButton->setAllowTransparency(true);
to the different color boxes and the change in

Code: Select all

color.setRgbF
, right?
Yes, and you are welcome to it if you'd like. I'm traveling right now, so it will be a few days before I can get to it.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: STEP Export/Import colors override (?)

Post by uwestoehr »

chennes wrote: Fri Nov 05, 2021 10:48 pm Yes, and you are welcome to it if you'd like.
OK, I will do so. Enjoy your journey.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: STEP Export/Import colors override (?)

Post by uwestoehr »

uwestoehr wrote: Sat Nov 06, 2021 1:06 am OK, I will do so. Enjoy your journey.
I had a look and the colors in the preferences are of the type "SbColor" that does not support transparency.
Post Reply