[Bf-python] Modify UVs

JOEEAGAR at prodigy.net JOEEAGAR at prodigy.net
Tue Sep 14 22:08:41 CEST 2004


--- Original Message ---
From: "Kaal_le_Saint" <Kali.tm at wanadoo.fr>
To: <bf-python at blender.org>
Subject: [Bf-python] Modify UVs

>I have a Cube with a UV coordinate... How to modify 
this coordinate?
>
>_______________________________________________
>Bf-python mailing list
>Bf-python at projects.blender.org
>http://projects.blender.org/mailman/listinfo/bf-
python
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