I've got a code that loads textures, and determines which is what with eNUM list of texture-type. Basically, I get the right textures connected to their right slots of the material (e.g. 29318291083.TGA goes to Normal
). Now what I'm trying to do is rename them and export them out so the texture I just mentioned would come out as 29318291083_Normal.TGA
.
I assume Blender isn't able to rename external files so I added a line that packs each texture when it loads it, so I can rename it while packed, then export as a new .TGA.
Now I got the texture's packed but I don't seem to find a way to rename a packed texture.
Any help would be very appreciated. Thanks!