Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5834

Material Name [Beginner]

$
0
0

@Maxence wrote:

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 

    rs.MaterialName(mat,"1")`

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
Maxence

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5834

Latest Images

Trending Articles



Latest Images