Found on http://forums.cgsociety.org/archive/index.php?t-270803.html
Will reload all textures in the scene.
“/* This file downloaded from Highend3d.com
’’
’’ Highend3d.com File Information:
’’
’’ Script Name: Global File Texture Reloader v1.0
’’ Author: Jared Martin
’’ Last Updated: September 11, 2002
’’ Update/Change this file at:
’’ http://www.highend3d.com/maya/mel/?section=interface#1889
’’
’’ Please do not alter any information above this line
’’ it is generated dynamically by Highend3d.com and will
’’ be changed automatically on any updates.
*/
//Global File Texture Reloader (GFTR) v1.0
//
//Created by Jared Martin
//
//Reloads all file textures.
global proc reloader()
{
reloaderizer();
}
reloader;
global proc reloaderizer()
{
string $texturename[] = `ls -tex`;
int $nothing =0;
int $count= size($texturename);
string $whole;
while ($nothing < $count)
{
$whole = $texturename[$nothing] + “.fileTextureName”;
TextureReload $whole;
++$nothing;
}
}
global proc TextureReload (string $ftn)
{
string $currFile = `getAttr $ftn`;
if ($currFile != “”) {
int $i;
string $allTextures[] = `ls -textures`;
for ($i = 0; $i < size($allTextures); $i++) {
if (`nodeType $allTextures[$i]` == “file”) {
string $ithFile = `getAttr ($allTextures[$i] + “.ftn”)`;
if ($ithFile == $currFile)
setAttr ($allTextures[$i] + “.ftn”) -type “string” $currFile;
}
}
}
}”