@Tool compositor effect not working on export

Godot Version

v4.7.2.stable.arch_linux [ed1daf0bf]

Question

Hi, I’m still working on the datamosh thingy, and I’m having trouble when exporting the project. For some reason, it won’t work on the export file, but will work in the editor?

The MRP is still the same, and it’s the last issue with it (that I can foresee), before it’s 100% ready for publishing.

IDK what to do or say, I just want this project to be done, at this point.

Upon running the executable in the console, I had the following error:

The solution was making a helper variable that returned the EditorInterface singleton as such:

static var editor_interface: Object:
	get:
		return Engine.get_singleton(&"EditorInterface")

So, instead of EditorInterface.get_edited_scene_root(), I do editor_interface.get_edited_scene_root(), inside an if Engine.is_editor_hint():, and it just works.