Python issue in UE: unable to get folder paths inside content browsers source panel only selections in asset view

Hi I’m trying to make a tool using python but it requires me to be able to select a folder and get the selected folder path. I’m currently using:

unreal.EditorUtilityLibrary.get_selected_folder_paths()It works inside the content browser asset view just fine. However, when I try to select a folder in the source panel I don’t get any path returned. I have tried also using the code below as well but neither have gotten any results.

unreal.EditorUtilityLibrary.get_current_browser_path()Is there another way to get the selected folder path from selecting a folder in the source panel?

Hi Jarred,

Thanks for reaching out! On our side, I see a function called GetSelectedPathViewFolderPaths exposed in the EditorUtilityLibrary (presumably unreal.EditorUtilityLibrary.get_selected_path_view_folder_paths() in python). This function seems to do exactly what you are asking for.

Let me know if you encounter any issues with it, or if it is not doing what the name suggests.

Thanks,

Aditya Ravi Chandran