ReTiCo icon indicating copy to clipboard operation
ReTiCo copied to clipboard

Unwrap UV2 of each selected object

Open Vinc3r opened this issue 7 years ago • 3 comments

Vinc3r avatar Mar 31 '17 14:03 Vinc3r

at least two options :

  • classic unwrap (user have to make sure that seams correctly assigned) followed by packing
  • smart unwrap

Vinc3r avatar Jun 07 '17 11:06 Vinc3r

now that Blender 2.8 have multiple objects edition availabled, maybe just a button to check/fix if some objects doesn't have UV2

Vinc3r avatar Aug 19 '19 09:08 Vinc3r

import bpy

# create UV2
for obj in bpy.context.selected_objects:
    uvChans = obj.data.uv_layers
    if len(uvChans) < 2:
         uvChans.new(name="UV2")

# remove UV2
for obj in bpy.context.selected_objects:
    uvChans = obj.data.uv_layers
    if len(uvChans) > 1:
         uvChans.remove(uvChans[1])

Vinc3r avatar Jun 21 '21 14:06 Vinc3r