Automatic mtl file editor