Python Remove Material

Python Remove Material

Anonymous
Not applicable
676 Views
0 Replies
Message 1 of 1

Python Remove Material

Anonymous
Not applicable

I'm trying to learn the Python/Max API library to write some procedures into my workflow.  One thing that I need to do is remove the material of an object (which isn't needed for this particular layer).

 

obj = iNode[0].GetObject()

node = iNode[0]

 

mat = node.Material

 

... this works fine...  but i'm trying to do

 

node.Material =  None

node.SetMaterial(None)

 

and neither works...

 

What am I doing wrong?

 

 

0 Likes
677 Views
0 Replies
Replies (0)