11

I am working with multiple objects that have different UV names, I would like to know if there is a quick solution for renaming UVs of all the objects to UVMap

Denis
  • 13,059
  • 7
  • 60
  • 81
  • I don't know of any way besides python.. – gandalf3 Mar 23 '15 at 02:45
  • 3
    I wrote an add-on to handle these types of situations: http://blenderartists.org/forum/showthread.php?272086-Addon-Name-Panel-1-5 – proxe Feb 03 '16 at 18:26
  • Also, I'd add to Chebhou's script, you can iterate them. I just named mine after the object they belonged to. import bpy for obj in bpy.context.selected_objects : for uvmap in obj.data.uv_layers : uvmap.name = obj.data.name – GlifTek May 02 '20 at 17:48

1 Answers1

17

select all objects and run the script :

import bpy

for obj in bpy.context.selected_objects:

try:
    obj.data.uv_layers.data.uv_layer_stencil.name = 'UVmap'
except:    
    continue

Chebhou
  • 19,533
  • 51
  • 98