Hi, I wanted to have the selected object name of the material ( multisubobject material ) with :
selection[1].material.materiallist[12] for eg.
but I get WOOD:Standart material for eg.
I just want "WOOD". Any help ? Thanks.
Forum topic · General Scripting
By titane357 · 2022-09-12
Hi, I wanted to have the selected object name of the material ( multisubobject material ) with :
selection[1].material.materiallist[12] for eg.
but I get WOOD:Standart material for eg.
I just want "WOOD". Any help ? Thanks.
miauu · 2022-09-12
-- this
selection[1].material.materiallist[12].name
-- or this:
str = "WOOD:Standart material"
(filterString str ":")[1]
titane357 · 2022-09-14
Hi, thank you very much !
the first one will be my choice.
the second one is so cool !
:-)
.
miauu · 2022-09-14
The second one should be:
str = selection[1].material.materiallist[12]
(filterString str ":")[1]
titane357 · 2022-09-15
Thanks. It was comprehensible :-)
miauu · 2022-09-15
Yeah. :) It was not for you. I had to type it properly in my first comment.
titane357 · 2022-09-16
:-)