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 :)
Scripting in Blender with Python, and working on the API
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest