//------------------------------------------------------------------------------ //-- Aa_Reload //-- //-- Reload all texture files (usefull if main texture directory has changed) //-- //-- Version : 1.0 //-- Author : Alexandre Aillet (webmaster@F-oeni-X.com) //-- Created : June 2004 //-- Updated : March 2005, july 2009. //-- //-- How-to : reload one texture file //-- call 'Aa_Reload()' from script editor or shelf command //------------------------------------------------------------------------------ //----------------------------------------------------------------------- //-- Aa_Reload //----------------------------------------------------------------------- //-- Reload all texture files //-- input : null //-- output : null //----------------------------------------------------------------------- global proc Aa_Reload() { string $maps[] = `ls -typ file`; string $map; for($map in $maps){ AEfileTextureReloadCmd ($map + ".fileTextureName"); string $currentFile = `getAttr ($map + ".ftn")`; int $fileTest = `filetest -r $currentFile`; if($fileTest == 0){ warning ("Texture file " + $currentFile + " doesn't exist, node " + $map); } } }