Notifications
Clear all

[Closed] Get the material name of a sub object selection

Hi guys,
I have a cube with a multi sub object material. I have one face selected and need to get its material name through script.
Every method I’ve tried keeps returning the entire multisub object material?
Can anyone help?
Thanks

1 Reply

id = ($.getmaterialindex true)
$.material[id].name

I think this is what u r looking for…