global proc Phil_bakeTextureThruTime(string $shadGrp, string $bakeObj, string $projectn, int $res, int $sfr, int $efr, int $step, string $bakeTexName) { int $i; for ($i = $sfr; $i <= $efr; $i+= $step) { print ("converting to solid texture file "+$bakeTexName+" - frame "+$i+"\n"); currentTime $i; select -r $bakeObj ; convertSolidTx -antiAlias 0 -bm 1 -sh 0 -alpha 0 -doubleSided 0 -componentRange 0 -resolutionX $res -resolutionY $res -fileFormat "tif" -fin ("sourceimages/"+$bakeTexName+"."+$i+".tif") ($projectn+".outColor") $bakeObj ; } }