Timeline for How to rename uvmaps in multiple objects
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 25, 2019 at 22:53 | comment | added | Martynas Žiemys |
You must be mistaken. There is no code there that could create a UV map. It just goes through existing UV maps and names them. For every UV map: for uvmap in obj.data.uv_layers it names the UV map uvmap.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.
|
|
Jun 25, 2019 at 21:40 | comment | added | tgerrons | I thought I made it very clear. Imagine you have several hundreds of objects. Some have uvmap named UVMap, some have aabbcc, some have ccddee, some have something else. But each has and can only have one uvmap (I can't have more than one). To change all their uvmap names to "UVMap" you need first name them to something else or x percentage of those objects now have two uvmaps. One called UVMap and one called UVMap.001 becauset he script creates duplicates if it finds already existing uvmaps with the same name. | |
Jun 25, 2019 at 15:41 | comment | added | Martynas Žiemys | What exactly do you mean? The script renames all found UV maps to 'UVmap' it is Blender that adds .001 automatically the moment it encounters any repeating name so no matter what you do, if an object has a few UV maps and all of them are named the same it will add the number after the name for every one of them after the first one. UV map names in a single object must be unique and it cannot be any other way no matter what you do. What is it that you solve by renaming twice? | |
Jun 25, 2019 at 15:25 | review | First posts | |||
Jun 25, 2019 at 16:16 | |||||
Jun 25, 2019 at 15:20 | history | answered | tgerrons | CC BY-SA 4.0 |