Change the "used UVLayer" in all materials in texture_slot 0 i have a model with multiple materials and i like to change the UV-Map for the texture slot "0" 
I got it to work with only one material:

import bpy
bpy.data.materials["Wand_Putz_Weiss02.tif"].texture_slots[0].uv_layer = "UVMap"


or like this:

import bpy
bpy.context.object.active_material.texture_slots[0].uv_layer = "UVMap"


is there an way to change the "used uv layer" in all materials assigned to an object?
thank you very much for your help!

greetings,
simisoad
i got it to work... wrong syntax was the problem :) i not used to program with python.

here is my solution:

import bpy
for item in bpy.data.materials:
     for itextures in item.texture_slots:
        if itextures is not None:
            item.texture_slots[0].uv_layer = "UVMap"