Hello
I wanted to print in maxlistener the list of selected objects with their material name. (to check my scene)
Problem is that I want to make a script to sort by name and print objects with their material :
box 1 // wood
box 2 // glass
box 3 // metal
and another to sort by material with object name.
glass // box 2
metal // box 3
wood // box 1
my problem is when I sort object names I can't figure how to associate material name to b.name....
-----------------------------------------
sel = for b in selection collect b.name
sort sel
for o in sel do
(
print ( "___" + o + "material name")
)
------------------------------------------
If somebody can help.... :-))
Anubis · 2009-08-04
Marco Brunetta · 2009-08-04