def METHOD_NAME():
    for n, texture_path in enumerate(mdl.materials_paths):
        if n == 0 and not texture_path:
            buffer.write('$cdmaterials "{}"\n'.format(texture_path))
        elif texture_path:
            buffer.write('$cdmaterials "{}"\n'.format(texture_path))
    buffer.write('\n')