What's happening with the paths of nodes that are loaded by an EditorPlugin and added to the editor?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Magso

I’m wanting to create a reference for a singleton to make calling plugin functions easier from a normal gdscript but I can’t figure out how to make a reference of the plugin for the singleton.
get_path() returns /root/EditorNode/EditorPlugin for the EditorPlugin and /root/EditorNode/@@5/@@6/@@14/@@16/@@20/@@24/@@25/@@26/@@3617/@@3618/Node for the loaded scene added to the editor, are these paths always the same if the plugin is used in another project?

:bust_in_silhouette: Reply From: Magso

A solution to this was to make a custom class tool script inheriting/extending GDScript.

tool
extends GDScript
class_name PluginName