setSelectedOne

Toggles the 'selected' flag of the gizmo state at index.

Signatures

  •   GUIControls.TransformGizmo.setSelectedOne(idx, selected, doRedraw = true)

Details

The function switches the value of the 'selected' 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.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.