Addon Script to rename materal to match Diffuse file name

I have a mass of materials created using Node Wrangle. However the material name does not related to the final output.
Is there a batch renamer that would rename the material to match the diffuse image to make it easier to locate?

Thanks

1 Like