setSelectedAtIndex (setter)
Sets the selected state of the control at the given index.
Signatures
- GUIControls.TransformRay.setSelectedAtIndex(selected, idx = 0, doRedraw = true)
Details
The setter accessor that changes the selected state of the control at the given index. The state of other points remains unchanged. 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.setSelectedAtIndex(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.