Material Name [Beginner]

Hello !

I’m completly new to python Scripting, and I’m trying to rename all my textures with a shortest name.

so far I have:

import rhinoscriptsyntax as rs
import Rhino
import scriptcontext
import System.Drawing

#I  don't understand what I should place here :arrow_down:
mat = scriptcontext.doc.Materials.Find(self.MaterialTable, materialName="complexe name material")

if mat 


As I said I’m a total beginner. I don’t understand what the first argument should be in the Materials.Find()

Thank you.

Kind regards

@pascal, got anything handing around in your toolkit that might help?

I’ll look - I have not done much with materials & textures in Python though…


@pascal, i guess he is more after renaming the materials. Renaming textures would likely destroy their assignment if not done in the file / filename as well.