Hi,
I’m trying to retrieve the filename of a texture map from a material.
I tried this code
obj.Material.Diffuse
It returns the RGB value but not the texture map even though a map is connected.
And so I tried the texmap_diffuse
and base_color_map
retrieved from the script listener but it gives me the following error
obj.Material.texmap_diffuse
# For the Vray Material. AttributeError: 'Mtl' object has no attribute 'texmap_diffuse'
obj.Material.base_color_map
# For the Physical Material. AttributeError: 'Mtl' object has no attribute 'base_color_map'
Is there a way around this?
Thank you for looking at my problem.
Disclaimer: Posted this on reddit but I got no replies. So, posting it here. Will update both threads accordingly.