So I have some models that have some transparent textures but they will appear black when imported, now I can easily fix this by using the names of the objects and then settings material to alpha blend and connecting the alpha nodes.
Thing is I wonder if blender has no knowledge whatsoever about wether an image/texture contains alpha?
I've seen something like this, where you make a new image one yourself:
bpy.data.images.new("albedo", width=1024, height=1024, alpha = True)
But I guess the imported images don't have the alpha option set to true by default, otherwise I would've expected Blender to already configure it correctly.
I also believe the only way to know this for sure would be to scan each pixel? As each image (rgb in my case) supports alpha but is not guaranteed to have alpha so I can't just "fix" all materials for transparency.
If I could just know what images were transparent I could just loop through all meshes, check textures, and if they have alpha fix the blend mode and link the nodes without relying on object names.