Look at this solid:
It's a simple cut of a cube and a cylinder:
I have also set the cut's transparency to 60 (arbitrary number):
But after I change any of the data properties of the sub-components (the cube or cylinder in this case), like the position, angle, length, width, radius, height, the "Cut" looks like this:
The transparency is no longer applied to the cut even though the value is still set to 60. You have to go into its view style and edit the transparency field for transparency to be applied again. Even just focusing the field and pressing arrow up, arrow down (which leaves it at the 60 previously set) is enough.
The same happens with compounds as well for example.
Most likely related is the fact, that if you change the view style of one of the sub-components (e. g. make the cube half transparent), that change is not visible, until you change any of its data attributes.
Object style of compounds/booleans/etc. is not applied if changing sub-component
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Object style of compounds/booleans/etc. is not applied if changing sub-component
- Attachments
-
- object_style_not_applied.FCStd
- (7.22 KiB) Downloaded 14 times
Re: Object style of compounds/booleans/etc. is not applied if changing sub-component
Sub components have not an influence on visualisation of the compounds.
It is s kniw behaviour, sometimes it could seem that the change is possible, but usually it seems "not persistent" as when a "redraw" will occur the object higher in the tree (main object) will prevail over sub object.
There is a way to define individual colors for each surface, but it is not fully implemented yet.
This resides to the fact that the "visualisation" is controlled by the View tab of the "main object".
If you search in the forum there are already done discussion about this topic, done are done by "core developers" so answers are "authoritative" and explain better this behaviour.
Regards.
Carlo D.
It is s kniw behaviour, sometimes it could seem that the change is possible, but usually it seems "not persistent" as when a "redraw" will occur the object higher in the tree (main object) will prevail over sub object.
There is a way to define individual colors for each surface, but it is not fully implemented yet.
This resides to the fact that the "visualisation" is controlled by the View tab of the "main object".
If you search in the forum there are already done discussion about this topic, done are done by "core developers" so answers are "authoritative" and explain better this behaviour.
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/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: Object style of compounds/booleans/etc. is not applied if changing sub-component
That the sub-object style doesn't come through to the top, is just a side issue I found and wasn't the main point of my post. The problem is that the style of the main object does not get applied after a geometric change of any of the sub-objects.
Re: Object style of compounds/booleans/etc. is not applied if changing sub-component
I have noted a thing, when dealing with scripted objects, that if you don't hide the sub-objects in some cases the color of subobjects is "overriding" the grey of the upper object, probably some coin3d glitch, or maybe asking @wmayer would lead to less guesses and some more "authoritative answer".
Recently he is fairly active in the forum and not rarely his answers are new "git commit" that address the problem, hoping this will be the case.
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/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: Object style of compounds/booleans/etc. is not applied if changing sub-component
The idea actually was that a boolean/compound inherits colors and transparencies of its input shapes.
With git commit 62dbfc5290 it's now possible to override the transparency of them.
With git commit 62dbfc5290 it's now possible to override the transparency of them.