Notifications
Clear all
[Closed] Maxsript access to material ID dropdown list in editable mesh?
Mar 23, 2017 2:41 pm
Pretty much says it all in the title. I can’t figure out how to get script access the dropdown list in:
modifier panel/editable_mesh/surface properties/material. The file came from revit.
I just need to read the labels.
Can anyone point me in the right direction please?
Cheers,
Cg.
2 Replies
Mar 23, 2017 2:41 pm
The dropdown menu shows the names of the multi-material materials, so you could get them directly from the material.
If you need to get it from the selected faces you could search the name by the selected faces Mat IDs.
-- Get the Materials IDs
$.mat.materialIDList
-- Get the Materials Names
$.mat.names