首页 > 其他 > 详细

关于清除丢失贴图与IES文件

时间:2014-10-15 19:29:32      阅读:268      评论:0      收藏:0      [点我收藏+]
fn YY_clrmessingmaps =
(
    YY_messingmap = #()
    allBitmaps = getClassInstances BitmapTexture  -- 所有材质
for m=1 to allBitmaps.count do
(
    if not doesfileexist allBitmaps[m].filename do append YY_messingmap m
    ) -- 收集丢失贴图
    if YY_messingmap.count != 0 do
        for c in YY_messingmap do
        (
            allBitmaps[c].filename = ""
            );  -- 清除丢失贴图
            
    YY_messingIES = #()
    all_light = getClassInstances Target_Light + getClassInstances Free_Light  -- 所有灯光
for l=1 to all_light.count do
(
    if not doesfileexist all_light[l].webFile do append YY_messingIES l
    ) -- 收集丢失IES
    if YY_messingIES.count != 0 do
        for w in YY_messingIES do
        (
            all_light[w].webFile = ""
            ) -- 清除丢失IES
    )-- 清除丢失贴图与IES

 

关于清除丢失贴图与IES文件

原文:http://www.cnblogs.com/3dxy/p/4026941.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!