videep
12-14-2010, 07:11 AM
Hello Everyone,
what i am trying to do here is to get the multi material in the material editor slot and then
change the refraction and reflection glossiness to 1 ( USING VRAY MATERIAL).
this is what I am doing:
x = ( for o in selection where classof(o.material) == MultiMaterial collect o)
for i = 1 to x.count do
meditMaterials[i] = x[i].material
if i > x.count then
i = i + 1
---------------------------
i somehow know that using the following command makes changes in the multi material mode:
for j = 1 to x[i].material.numsubs
meditMaterials[i].material = x[i].material[j]
--------------------------------------------
so now i would like the reflection glossiness of all the materials to be 1
meditMaterials[i].material[j].reflection_glossiness = 1
----------------------------------------------
me being a noob
and then after this max gives an error...
so how to compile the code that it works properly??
Please do help !!!
what i am trying to do here is to get the multi material in the material editor slot and then
change the refraction and reflection glossiness to 1 ( USING VRAY MATERIAL).
this is what I am doing:
x = ( for o in selection where classof(o.material) == MultiMaterial collect o)
for i = 1 to x.count do
meditMaterials[i] = x[i].material
if i > x.count then
i = i + 1
---------------------------
i somehow know that using the following command makes changes in the multi material mode:
for j = 1 to x[i].material.numsubs
meditMaterials[i].material = x[i].material[j]
--------------------------------------------
so now i would like the reflection glossiness of all the materials to be 1
meditMaterials[i].material[j].reflection_glossiness = 1
----------------------------------------------
me being a noob
and then after this max gives an error...
so how to compile the code that it works properly??
Please do help !!!
