How to delete one of the material in the sub-material !

How to delete one of the sub-material by maxscript like the delete button on the multi/sub-object rollout。

I used deleteitem $.material.materiallist 2,but the result is not what I want !

I need some helps! Thanks a lot !

AttachmentSize
20170412114852.png27.57 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pixamoon's picture

`

Hi,

Take a look here:
http://help.autodesk.com/view/3DSMAX/2016/ENU/index.html?guid=__files_GU...

to delete submaterial 2:

$.material[2] = undefined

Best,
Pixamoon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.