[Bf-python] Modify UVs

Kaal_le_Saint Kali.tm at wanadoo.fr
Tue Sep 14 21:51:29 CEST 2004


Thank you joeedh for your answer :-).



But ^^ :

----uv_coordlist = f.uv

Is not the valid form ?

I try that:
(----f.uv = my_uvlist)

But... Don't work. No error and no result too...

I try to update my Mesh after... Nothing.


Another problem : my_Mesh.hasFaceUV(1) do not create empty uv.
Where is the problem ?

Je ne sais plus quoi faire.. Help me ?!


Joeedh a écrit :
This. . .

import Blender
from Blender import NMesh

mesh = NMesh.GetRawFromObject("Cube")
for f in mesh.faces:
----uv_coordlist = f.uv 

. . .will loop through each face and allow you to 
access it's uv coordinates.  [delete the '----' and 
replace with a tab]

See also 
http://www.blender.org/modules/documentation/234Python
Doc/NMesh-module.html 

Look under the NMFace subclass section.

And perhaps you should be posting this on 
Elysiun. . .I don't know. . . :)  

joeedh




More information about the Bf-python mailing list