10
$\begingroup$

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

$\endgroup$
3
  • $\begingroup$ I don't know of any way besides python.. $\endgroup$
    – gandalf3
    Mar 23, 2015 at 2:45
  • 3
    $\begingroup$ I wrote an add-on to handle these types of situations: blenderartists.org/forum/… $\endgroup$
    – proxe
    Feb 3, 2016 at 18:26
  • $\begingroup$ 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 $\endgroup$
    – GlifTek
    May 2, 2020 at 17:48

1 Answer 1

16
$\begingroup$

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
$\endgroup$
1
  • 1
    $\begingroup$ This code saved me from having to manually rename the UVs on about 50 different objects by hand, lol $\endgroup$ Nov 13, 2015 at 4:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .