Author Topic: Set custom UVs  (Read 1060 times)


  • Newbie
  • *
  • Posts: 15
    • View Profile
Set custom UVs
« on: May 02, 2022, 04:01:04 PM »

I would like to set custom UV coordinates to my model via Python API.

I tried the following :
Code: [Select]
for i in range(len(uv)):
        model.tex_vertices[i].coord.x = uv[i, 0]
        model.tex_vertices[i].coord.y = uv[i, 1]

uv being the [#vertices x 2] numpy array containing the uv coordinates I want to apply to model

As a result, the model.tex_vertices are not modified. (It keeps being a list of (0,0) tuples)
I checked my custom uv and they are right.

What do I do wrong here ?



PS : Maybe I should mention I am working with a multiframe chunk