转 脚本调用标准材质,多维材质固有色的bulr
--调所有stadard固有贴图blur
--BY 飞浪
--2008-08-12
--更多脚本尽在CG++:http://www.cgplusplus.com/bbs
try destroydialog fl_defaultBlur catch()
rollout fl_defaultBlur "调所有stadard固有贴图blur" width:162 height:31
(
spinner spn1 "Blur:" pos:[20,7] width:67 height:16 range:[0,100,0.01] scale:0.01
button btn1 "OK" pos:[92,6] width:57 height:18
fn adjustBlur mtl v =
( tempclass = classof mtl
if tempclass == standardmaterial then try mtl.maps[2].coords.blur = v catch()
else if tempclass == Multimaterial then
( for m in mtl.materialList do adjustBlur m v)
)
on btn1 pressed do
( for i in scenematerials do
adjustBlur i spn1.value
)
)
createdialog fl_defaultBlur
--BY 飞浪
--2008-08-12
--更多脚本尽在CG++:http://www.cgplusplus.com/bbs
try destroydialog fl_defaultBlur catch()
rollout fl_defaultBlur "调所有stadard固有贴图blur" width:162 height:31
(
spinner spn1 "Blur:" pos:[20,7] width:67 height:16 range:[0,100,0.01] scale:0.01
button btn1 "OK" pos:[92,6] width:57 height:18
fn adjustBlur mtl v =
( tempclass = classof mtl
if tempclass == standardmaterial then try mtl.maps[2].coords.blur = v catch()
else if tempclass == Multimaterial then
( for m in mtl.materialList do adjustBlur m v)
)
on btn1 pressed do
( for i in scenematerials do
adjustBlur i spn1.value
)
)
createdialog fl_defaultBlur