关于清除贴图与光域网路径

写了个有关清除贴图与光域网路径的函数,简单实用,不过最好保证所有贴图都在文件根目录下再运行.

fn clear_bitmap_path =
(
    YY_Bitmaps = getClassInstances BitmapTexture
    YY_Webfiles = getClassInstances Target_Light + getClassInstances Free_Light
    for b in YY_Bitmaps do
    (
        b.filename = filenameFromPath b.filename
    )
    for w in YY_Webfiles do
    (
        w.webfile = filenameFromPath w.webfile
    )
)--清除贴图与光域网路径

会清除路径只保留名,相当于把所有路径设置为条带路径.

原文地址:https://www.cnblogs.com/3dxy/p/4287668.html