Call SceneTreeDialog (Node selector) from EditorProperty Plugin

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

Hello.

I’m trying to create an EditorPlugin using GDScript.
I’ve have been able to attach a new EditorProperty (a button) to the list of properties of a node, and to execute some code when clicked.

Now I was trying to open the default SceneTreeDialog (Node selector) when the button is clicked.

I have tried using SceneTreeDialog.new().show() but “new()” method is not valid for SceneTreeDialog.

I have been able to get an instance of SceneTreeEditor by navigating the editor SceneTree (successfully hiding and showing the SceneTreeDock).
But I don’t know how, if possible, I can display the standard Node Selector modal from my plugin.

Thanks!

:bust_in_silhouette: Reply From: rossunger

I’m also looking for something like this!
I’m trying to access save_branch_as_scene