lf3thn4d wrote:
As for regular expression, it's possible but I don't really see the point of it.
We can do fine without it. As I have said before it's not one of the hottest feature.
But it's not useless as you might think it is. It's just a generic way of getting texture by name.
It's very often that graphical files/materials are named with some additional info about it's uses.
for example:
postfix "_nm" or "_nor" for normal mapping.
or "_spc" for specular mapping.
Also some materials in blender might be more complex than this one exported.
Let just say that in blender I have materials A and B
A - diffuse/normal/specular textures
B - diffuse/specular textures
What I need is template for diffuse/specular combination. I'm exporting for lower graphics profile.
I can't use the same template for them if I'm getting textures by index.
About fallback to material generator. It would be nice if we got a possibility to specify default material template.
[edit]
Ok it just came to my mind.
This one is a killer 
:
In blender material Textures section we got "Map To"
Where we can specify behavior of a texture "Col" "Nor" "Spec" (and more) thanks to this we know the purpouse of a texture.
In material template we can do
%NorTexture.Texture
%ColTexture.Texture
%SpecTexture.Texture
Let just say that the first texture with specified trait will be chosen.
Or an extensions with indexes example for normal mapping texture:
%NorTexture0.Texture == %NorTexture.Texture
%NorTexture1.Texture
.
.
.
%NorTextureN.Texture
[/edit]
This is a block of text that can be added to posts you make. There is a 255 character limit.