No announcement yet.

Getting current content browser folder

  • Filter
  • Time
  • Show
Clear All
new posts

    Getting current content browser folder

    Is there a way in Python to get the current/selected folder in the content browser?

    The closest I've been able to get is:
    which returns the system path to my project content folder. But what I want to get is the path to whatever folder I have selected in the content browser. Meaning...

    Click image for larger version  Name:	content_browser_path.jpg Views:	1 Size:	25.4 KB ID:	1592840

    I found this old post from back in 2015 where the OP was trying to do the same in C++. Judging by the last post in the thread, it seems he found some very roundabout way of getting the path. I don't know C++ and I don't quite understand the solution he describes, but I'm posting the link below in case it's helpful to someone else:
    Last edited by Code_Goblin; 03-08-2019, 02:22 PM. Reason: Added relevant link