How to create a new mesh UV with the Blender Python API

To make a new UV with the Python API and set coordinates to its points, we need:

First – create a new UV with the desired name:

Next, to specify the coordinates of its points, we need to cycle through all the “loops” of the mesh:

and set the required coordinates through them:

The following code will create a new UV for the active mesh and locate its points according to the coordinates specified in the uv_co list:


Author: Nikita

Blender add-ons developer and articles writer.

0 0 votes
Article Rating
Notify of
0 Comment
Inline Feedbacks
View all comments