setVisibleOne (setter)
Sets the visible state of the control at the given index and resets the others to the opposite value.
Signatures
- GUIControls.TransformRay.setVisibleOne(visible, idx = 0, doRedraw = true)
Details
The setter accessor that changes the visible state of the control at the given index. All other points are set to the opposite value. If the open parameter is a single value, the index is defaulted to 0. If doRedraw is true, the control is redrawn in the viewport.
Example
GUIControls.TransformRay.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.