相关内容记录在官方文档 BitmapTexture : TextureMap 中

fn allUsedMaps =
(
sceneMaps = usedMaps()
for m in meditmaterials do join sceneMaps (usedMaps m)
sceneMaps
)
allUsedMaps()

 扩展一下复制使用贴图名到指定目录

fn copy_usedmaps maxpath =
(
allusedmaps = makeUniqueArray (usedmaps())  --获取使用贴图并去除重复
for i in allusedmaps do
(
    newfilepath = maxpath + "\\" + filenameFromPath i
    if doesFileExist i and not doesfileexist newfilepath do
    (
        copyfile i newfilepath
        )
    )
    ) --收集使用贴图到指定目录,跳过目录内重复贴图
copy_usedmaps "C:\Users\Administrator\Desktop"

 

相关文章:

  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案