setSelectedOne (setter)

Sets the selected state of the control at the given index and resets the others to the opposite value.

Signatures

  •   GUIControls.TransformPoint.setSelectedOne(selected, idx = 0, idx2d = 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 2d array of values, the index is a row index. 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.TransformPoint.setSelectedOne(true);
 

Parameters

selected

A boolean flag to set the state of the point.

idx

An index of the point in the list. If the open parameter is a single value, the index is defaulted to 0. If the open parameter is a 2d array of values, the index is a row index.

idx2d

A column index of the point in the list. If the open parameter is a single value, the parameter shall be ignored.

doRedraw

A boolean flag to redraw the control in the viewport.