I would like to hide a "Slice" object created after a "ExplodeCompound" command:
Code: Select all
# ...
Slice_group = CompoundTools.Explode.explodeCompound(f) # Creation of "Exploded Slice"
Code: Select all
Gui.ActiveDocument.getObject("Slice_child0").Visibility=False
Code: Select all
Gui.ActiveDocument.getObject(Slice_group[1][0].Label).Visibility=False
Attached, my model tree.
How can I access the Visibility property of the Slices?
Thank you!
Igmar
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)