I'm currently working on new addon for blender 2.8 but I got stuck because I need to find a way to list all the Matcaps and Studio lights installed inside blender.
I'm using this to list all the matcaps and studioligths installed in blender:
import bpy
lights= bpy.context.preferences.studio_lights
list_lights=[]
list_lights.append(tuple(lights))
print(list_lights)
and It works that list all the studio ligths and matcaps, but with this structure:
<bpy_struct, StudioLight("basic_1.exr")>, StudioLight("03_Three_Points.sl")>...
and I would like to have only the name and the type of the light something like this:
['basic_1.exr'], ['03_Three_Points.sl']...
Hopefully someone could bring me some help
Thank you so much in advance