[Bf-python] [doc ] NMesh transform
jean-michel soler
jmsoler at free.fr
Thu Aug 25 12:02:28 CEST 2005
Just a word about the NMesh transform :
ob = Object.GetSelected()[0] # Get the first selected object
me = NMesh.GetRawFromObject(ob.name) # Get the objects deformed mesh data
me.transform(ob.matrix)
for v in me.verts:
print 'worldspace vert', v.co
Not false, but as "me" can't be updated.(at least in blender 2.37), this
gives a bad
example to beginners (there is several messages on elysiun's python
forum and on
the 3D.Dlender french nntp forum too). The example should be :
from Blender import *
ob = Object.GetSelected()[0] # Get the first selected object
me = ob.getData()
me.transform(ob.matrix)
for v in me.verts:
print 'worldspace vert', v.co
me.update()
Regards .
jms
More information about the Bf-python
mailing list