I'm playing with python scripting, looking for mesh internal data.
I manage to get the data, but the normal I get is always empty
Look at my script below :
Code: Select all
meshes = 
meshes = scene.getMeshes()
for mesh in meshes :
vertexes = 
faces = 
(vertexes, faces) = mesh.getGeometry()
for vertex in vertexes :
# OK, Position contains data.
position = vertex.getPosition()
# OK, uv contains data.
uv = vertex.getTextureCoordinates()
# No OK, normal always = (0,0,0), Why?
normal = vertex.getNormal()
Did I get someting wrong?
If someone can help me, thanks in advance!