setVisibleAtIndex

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

Signatures

  •   GUIControls.TransformGizmo.setVisibleAtIndex(idx, visible, doRedraw = true)

Details

The function switches the value of the 'visible' flag of the control's gizmo state at a given index. The state of other gizmos (if an open parameter is a list of matrices) remains unchanged. If doRedraw is true, the control is redrawn in the viewport.

Example

 GUIControls.TransformGizmo.setVisibleAtIndex(true);
 

Parameters

visible

A boolean flag to set the visible 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.