I need to rename materials to the file names of the linked texture excluding the extension. The original file is an imported .obj, there is one texture to each material, after the material name is changed and some model scaling, it’s then exported as .fbx
I basically need some python script that can call the name of the first texture in a material, below is my feeble attempt.
import bpy for material in bpy.context.object.data.materials: material.name = "Some Python Magic"
Any and all help is appreciated.