// Mayonnaize Product // relocateTextureFile.mel // // 機能: // #1. 更新したテクスチャファイルの再キャッシュ // #2. sourceimages以上のドライブ情報などの削除 // (project dirのsourceimagesを使用) global proc relocateTextureFile() { //print "start relocateTextureFile\n"; string $file; string $filepath; string $rename; string $filelist[]; $filelist = `ls -type file`; for ( $file in $filelist) { $filepath = `getAttr ($file + ".ftn")`; $rename = `substitute ".*sourceimages/" $filepath "sourceimages/"`; print ($rename + "\n"); // debugging setAttr -type "string" ($file + ".ftn") $rename; print `getAttr ($file + ".ftn")`; print "\n"; } }