Refresh and Clear Console from EditorScript

Godot Version

v4.2.1.stable.official [b09f793f5]

Question

Hello,

I am making some EditorScripts and I would like to know how I can access the output console.

Especially, I would like :

  • to refresh the console from the script, since some print() are not displayed until I click on some console button to refresh it
  • to clear the console from the script

How can I achieve that ?

1 Like

The lack of automatic refresh is a bug (see : Output does not display prints after push_warning/push_error calls in EditorScript · Issue #89013 · godotengine/godot · GitHub).