I am trying to assign new UV coordinates to a face via python and have a problem: after writing my UV data nothing happens, blender does not see or recognize the changes I make. when rerunning the script the old values are there again.
here's a small piece of code:
mesh = Blender.NMesh.GetRawFromObject('Plane')
face = mesh.faces
# that prints me the original uv data as set manually in the UV editor
# that seems to work - I get a [ ]
# that seems to work as well - face.uv has all the values above now
# do I need this?
well - after running the script nothing changes and when I run it one more time I see that it starts with old values - blender did not remember the changes I made.
I guess I am doing something wrong or missing something, but I was not able to figure out what; any help is appreciated :)
just figured it out! baaah, spent almost 4 hours yesterday :)
it works when using the Mesh module, it does not work with NMesh, that's all :)