setTranslationVisible

Toggles the 'visible' flag of the gizmo translation axis.

Signatures

  •   GUIControls.TransformGizmo.setTranslationVisible(visible, axis = 'none', doRedraw = true)

Details

The function switches the value of the 'visible' flag of the control's gizmo translation axis.

Example

 GUIControls.TransformGizmo.setTranslationVisible(true, axis = 'x', false);
 

Parameters

visible

New value of the 'visible' flag.

axis

Axis of the translation. Defaults to 'none'.

doRedraw

If true, the viewport will be redrawn. Defaults to true.