--------------------------------------------
fn clearMisMaps mm = (
numSTM = getNumSubTexmaps mm
if numSTM != 0 do (
for i = 1 to numSTM do (
try(
theMAP = getSubTexmap mm i
if theMAP != undefined do(
if classOf theMAP == Missing_TextureMap or theMAP.filename == undefined do setSubTexmap mm i undefined
clearMisMaps theMAP
)
)catch()
)
)
)
fn theAllMat = (
local allMat = #()
join allMat (getclassinstances CoronaMtl)
join allMat (getclassinstances VRayMtl)
join allMat (getclassinstances Standardmaterial)
return allMat
)
for m in theAllMat() do clearMisMaps m
--------------------------------------------
Для выполения Ctrl+E