Heya I want to create and assign material to selected object. But If I'm assigning the same material to 2 objects I'm creating 2 materials instead of assignign 1 mat to 2 objects. Can some1 look at my errors?
[CODE]
fn mats =
(
(
for o in getCurrentSelection() do (
try (
o.material = Arch___Design__mi ()
o.material.name ="TestMat"
o.material.diff_weight = 0.02
o.material.refl_weight = 1
o.material.refr_weight = 0.9
o.material.refl_func_fresnel = on
o.material.opts_1sided = on
o.material.opts_propagate_alpha = on
o.material.opts_refl_depth = 10
o.material.opts_refr_depth = 10
) catch()
)
)
)
mats()
[\CODE]
barigazy · 2015-03-05