Exported .mtl does not specify the texture image When I export the .obj file, the generated .mtl does not specify the texture image used by the model.
I expected it to have
map_Kd texture.png

but it does not have it. If I write map_Kd texture.png manually, it works fine.
How can I automate to include the texture image when exporting from blender?
This is my shading scheme:
The textures color output should be attached to the color input of the shader (Diffuse BSDF in your example), for it to be exported into the mtl file.
Edit:
It seems the PrincipleBSDF shader node (instead of DiffuseBSDF) is needed for the .obj / .mtl export to function properly!