The script switches any texture file to use a Mental Ray .MAP file instead, but only during rendering. This seems to help with big texture memory consumption.
Since 3ds MAX does not support Mental Ray .MAP, the script temporarily changes the file name to the .MAP file only during rendering and then change it back when rendering is ready.
IF: