First of all, the function
bpy.ops.mesh.uv_texture_add()
does not return the name of the uv texture. It returns {‘FINISHED’} if everything is all right and {‘CANCELED’} if there is a problem.
To change the name, just write
bpy.data.meshes[‘Cube’].uv_textures[‘UVTex’].name = “The_name_u_want”
i use the add() method to add the uvtex layer… i had the problem solved an working but becaus blenders REDO button dint work in the python text editor i could not find the solution again (FRUSTRATION!!!))))
am i doing something wrong ? that it could not work?
althought i get confused by blenders output when you hover over these Uvlayer buttons showing this MeshTextureFaceLayer.
And the API documentation didnt really help eighter makin it clear…
I guess “MeshTextureFaceLayer” is used to set an UVmap as active or as active_render, but I can’t figure out how. If someone knows it, I would be very happy.