Can delete a UV Map / Texture, via


But how can I delete a UV Map by it's Index?


Set the active index,

Similarly to materials and other lists where the active and active index can be set.

Example in python console. The 3rd UV map is active

>>> C.object.data.uv_layers.active_index

Change instead to second (index 1)

>>> C.object.data.uv_layers.active_index = 1

Operator removes the active UV map

>>> bpy.ops.mesh.uv_texture_remove()

See also How to find and delete extra UV layers on many objects? : can remove directly using the remove API method.

>>> C.object.data.uv_layers.remove(C.object.data.uv_layers[1])
  • $\begingroup$ Thank you so much!! $\endgroup$
    – BlackCube
    Jun 9 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.