This can be solved with a few lines of python and a naming convention for texture file names (or alternatively a small json file per texture with metadata).