setSelectedAtIndex

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

Signatures

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

Details

The function switches the value of the 'selected' flag of the control's gizmo state at a given index.

Example

 GUIControls.TransformGizmo.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.