I have hundreds of objects. Some have uvmap named "UVMap" while others have some other names. How do I change the uvmap name in all objects to UVMap?
I did find this but the script adds a new uvmap (UVMap.001) if the existing one is already named as UVMap: How to rename UVs of all the objects?. Because blender search does not sort by uvmap name I can't limit my selection to objects that have other name.
for uvmap in obj.data.uv_layersit names the UV mapuvmap.name = 'UVMap'This is all it does. That cannot possibly create anything because it only sets a value for something that exists already. Only if the objects have multiple UV maps already before the script is run, you will see the numbers added to the names. – Martynas Žiemys Jun 25 '19 at 22:53