Get selected item from EditorFileSystem

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

I am wondering if there is a way I can get the currently selected file in FileSystem window using code ? I am assuming it has something to do with EditorFileSystem but I didn’t find anything

I tried get_editor_interface().get_selection().get_selected_nodes() , but it only worked in it is in the scene.

Did you ever figure this out? There is the EditorInterface::get_current_path method, but I can’t find anything on which signal to connect to

Jeppe Zapp | 2021-05-13 09:45