bpy python: is it possible to get the selected collection? for a script I am writing I need to know the collection that is currently selected in the outliner.
I have seen a solution where the ui is probed and it seemed very convoluted at the time and I was wondering if there might be a more elegant solution out there.
any tip and/or trick would be greatly appreciated.
thx,
S
Take a look at this repository, it has a function that could help you, get_active_collection ()
https://github.com/curtisjamesholt/EasyBPY/blob/master/easybpy.py