However I seem to have hit a roadblock actually using this string to change the currently used texture. So going back to basics I have just written the following;
myBmp = "c:\512.tga"
isValid = doesFileExist myBmp
$.mat.materialList.diffuseMap = myBmp
What I am not understanding is that I get an error saying;
-- Unable to convert: "c:\512.tga" to type: TextureMap
Now I know that that texture exists because isValid returns true. I'm sure I am doing something blatently obvious but I can't figure what!
Any suggestions would be great.