Heya
I am using ImportHelper to select images to load with bpy.ops.image.open().
Is there a way with python to find the list of supported file format for bpy.ops.image.open() so
I could set up my filter_glob correctly ?
filter_glob: StringProperty(
default="*.psd;*.tif", <<= filling this part with python instead of manually
options={'HIDDEN'},
maxlen=255, # Max internal buffer length, longer would be clamped.
)
No, In your example, you manually fill formats. I was looking for something like
Image.query_supported_format to fill it automatically but it doesn’t exist from what I’ve seen.
It is more about polish than anything though, not having it won’t break anything.
Fun fact, you could try doing this crazy idea, with an HTTP request get the page content, and retrieve the substring with the file formats, then save them in a custom .py file (autogenerated python file).