su37
09-18-2008, 07:02 AM
Hi!
I need help! The script can't rightly run ,How to can let it rightly run!
Thanks!
fn showMatInViewport mat =
(
if (mat != undefined) do
(
mat.showinviewport = true
if classof mat == Standardmaterial then
(
if (mat.diffusemap != undefined) then showTextureMap mat mat.diffusemap on
)
else if classof mat == Vraymtl then
(
if (mat.texmap_diffuse != undefined) then showTextureMap mat mat.texmap_diffuse on
)
if classof mat == VRayMtlWrapper then
(
if (mat.BaseMtl.texmap_diffuse != undefined) then showTextureMap mat mat.BaseMtl.texmap_diffuse on
)
)
)--end function
----------------------------------------------------------------------------------------
(
numsubs = 0
num_matls = sceneMaterials.count
for m = 1 to num_matls do
(
mat11 = sceneMaterials[m]
if (is_multi(mat11)) then
(
for i = 1 to mat11.numsubs do
(
progressEnd();
)
showMatInViewport mat11[i]
)
) else (
show_diffuse_map ma11 on
)
progressUpdate( 100.0 * m / num_matls )
)
I need help! The script can't rightly run ,How to can let it rightly run!
Thanks!
fn showMatInViewport mat =
(
if (mat != undefined) do
(
mat.showinviewport = true
if classof mat == Standardmaterial then
(
if (mat.diffusemap != undefined) then showTextureMap mat mat.diffusemap on
)
else if classof mat == Vraymtl then
(
if (mat.texmap_diffuse != undefined) then showTextureMap mat mat.texmap_diffuse on
)
if classof mat == VRayMtlWrapper then
(
if (mat.BaseMtl.texmap_diffuse != undefined) then showTextureMap mat mat.BaseMtl.texmap_diffuse on
)
)
)--end function
----------------------------------------------------------------------------------------
(
numsubs = 0
num_matls = sceneMaterials.count
for m = 1 to num_matls do
(
mat11 = sceneMaterials[m]
if (is_multi(mat11)) then
(
for i = 1 to mat11.numsubs do
(
progressEnd();
)
showMatInViewport mat11[i]
)
) else (
show_diffuse_map ma11 on
)
progressUpdate( 100.0 * m / num_matls )
)
