The new code for texture map export now works for the first material. So now I can add this to all the other materials as well. Big step in the right direction, makes the code much cleaner and easier to maintain, also makes the shader nodes in blender look good. #b3d #pbrt