写了个有关清除贴图与光域网路径的函数,简单实用,不过最好保证所有贴图都在文件根目录下再运行.
fn clear_bitmap_path = ( YY_Bitmaps = getClassInstances BitmapTexture YY_Webfiles = getClassInstances Target_Light + getClassInstances Free_Light for b in YY_Bitmaps do ( print (b.filename) b.filename = filenameFromPath b.filename ) for w in YY_Webfiles do ( w.webfile = filenameFromPath w.webfile ) )--清除贴图与光域网路径
会清除路径只保留名,相当于把所有路径设置为条带路径.
时间: 2024-11-05 14:39:05