Notifications
Clear all

[Closed] Working with materials

I figured out how to apply a new standard material to the selected objects in my scene and adjust the parameters of the material, but for the life of me I can’t figure out how to rename the material from Standardmaterial to something like “Skin” or “Eye”.


 $.material = StandardMaterial specularLevel:90 glossiness:30 twoSided:true showInViewport:true
 

Also, I’d like to know how to evoke the “Get All Scene Materials” command via maxscript. Once I have all my materials applied, I’d like them to all be visible on the Slate.

2 Replies

Hi,
all materials have a ‘name’ property.

mat = StandardMaterial specularLevel:90 glossiness:30 twoSided:true showInViewport:true name:"MyName"

as for the scene materials, look for ‘SceneMaterials’

Doh! I was missing the quotes in the name. Got it working, thanks!


$.material = StandardMaterial name:"Skin" specularLevel:90 glossiness:30 twoSided:true showInViewport:true
NodePos = [0,0]
SelView = sme.GetView sme.ActiveView
NewNode = SelView.CreateNode $.material &NodePos