sourceimage 경로 일괄 변경하기
file texture 노드를 선택한 상태에서 실행.

global proc changeSrcImgPath()
{
  string $fileNodes[] = `ls -sl -type file`;
  string $oldPath = "";
  string $newPath = "";
  string $fileBuffer[];
  for ($fileNode in $fileNodes)
  {
   $fileTxtAttr = $fileNode + ".fileTextureName";
   $oldPath = `getAttr $fileTxtAttr`;
   tokenize ($oldPath, "/", $fileBuffer);
   $img = $fileBuffer[(size($fileBuffer)-1)];
   $newPath = "/somewhere/" + $img ;
   setAttr -type "string" $fileTxtAttr $newPath $fileNode;
  }
}
changeSrcImgPath;
by mayan | 2007/05/14 16:14 | Maya | 트랙백 | 덧글(0)
트랙백 주소 : http://mayan.egloos.com/tb/3171427
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

< 이전페이지 다음페이지 >