for i= 1 to scenematerials.count do
(
if classof scenematerials[i] == MultiMaterial then
(
for m = 1 to (scenematerials[i].materiallist.count) do
(
if classof scenematerials[i].materiallist[m] == VrayMtl then
(
scenematerials[i].materiallist[m].reflection_lockGlossiness = true
)
)
)
if classof scenematerials[i] == VrayMtl then
(
scenematerials[i].reflection_lockGlossiness = true
)
)