Greetings. I’m trying to wrap my head around this but I still am not getting it to work.
As on below, I’m looping through vertices and getting the uv coordinates of each vertex.
What I am trying to do, is to manually control the position of the uv map. This is for item thumbnail images.
Lets say I have 320x320 pixels size texture that contains item thumbnails of size 32x32.
I know UV coordinate position scales from 0.0 to 1.0.
But what I don’t know, is in which order I have to manipulate each vertex to get the uv positioning to work in Python.
for starter: How would I nudge the current UV map 32 pixels to right?
mesh = thumbnail.meshes array = mesh.getVertexArrayLength(0) for v in range(0, array): vertex = mesh.getVertex(0, v) uv = vertex.getUV() #Possible solution goes here vertex.setUV(uv)