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:

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments