## Desktop.RedrawUI

### Introduced

v4.1

### Description

Redraws the user interface. It does this by pausing the execution of the plug-in until all pending window messages have been processed.
Note: It is recommended that this method be used with caution. Calling this method frequently can significantly slow down the execution of a plug-in. Redrawing the UI can have implications beyond just the pixels on the screen, for example render regions may be recalculated and parts of the scene may be re-evaluated.

### C# Syntax

    Desktop.RedrawUI();

### Scripting Syntax

    Desktop.RedrawUI();

### See Also

PPG Refresh SceneRefresh RenderRegionRefresh