setVisibleOne
Toggles the 'visible' flag of the gizmo state at index and resets the visible flag of all other gizmos to the opposite.
Signatures
- GUIControls.TransformGizmo.setVisibleOne(visible, idx = 0, doRedraw = true)
Details
The function switches the value of the 'visible' flag of the control's gizmo state at a given index. All other gizmos in the list (if any) will be set to the opposite state. If doRedraw is true, the control is redrawn in the viewport.
Example
GUIControls.TransformGizmo.setVisibleOne(true);
Parameters
- visible
-
A boolean flag to set the visible state
- idx
-
Index of the parameter value list. If the open parameter is a single value, the index is defaulted to 0.
- doRedraw
-
If true, the viewport will be redrawn. Defaults to true.