setSelectedOne (setter)
Sets the selected state of the control at the given index and resets the other points to the opposite value.
Signatures
- GUIControls.TransformRay.setSelectedOne(selected, idx = 0, doRedraw = true)
Details
The setter accessor that changes the selected 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.setSelectedOne(true);
Parameters
- selected
-
A boolean flag to set the selected 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.