HEre is a piece of code I found in my mxs samples:
I forgot who provided this, so please forgive me.
a_mats = getclassinstances vraymtl
a_lowGloss = #()
for o_mat in a_mats where o_mat.reflection_glossiness < 0.6 do append a_lowGloss o_mat
print a_lowGloss
a_lowGloss = #()
for o_mat in a_mats where o_mat.reflection_glossiness < 0.6 do append a_lowGloss o_mat
print a_lowGloss
Comment