|
|
| Menu location |
|---|
| View → Toggle Visibility |
| Workbenches |
| All |
| Default shortcut |
| Space |
| Introduced in version |
| - |
| See also |
| Std ShowSelection, Std HideSelection, Std ToggleObjects, Std ShowObjects, Std HideObjects |
The Std ToggleVisibility command toggles the visibility of selected objects in 3D Views.
true.See also: Autogenerated API documentation and FreeCAD Scripting Basics.
Use the show and hide methods of an object to change its visibility. An object's Visibility property can also be changed directly.
import FreeCADGui
obj = FreeCADGui.ActiveDocument.myObjectName
if obj.Visibility == True:
obj.hide()
else:
obj.show()
# Alternatively:
obj.Visibility = not obj.Visibility