Figuring out Shape Key Vertex Normals

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

apantev
Posts: 1
Joined: Wed Jun 27, 2012 2:17 am

Figuring out Shape Key Vertex Normals

Postby apantev » Wed Jun 27, 2012 2:35 am

I'm writing a script to export shape key information.

I have figured out how to find the all vertices of a given shape key, but I'm not sure how to find out the vertex normals of these shape key vertices.

I also figured out how to change the weight of a given shape key.

I have tried iterating through the shape keys one at a time making the current shape key have a value of 1.0 (fully enabled). Then checking the mesh's vertex positions and vertex normals, but it seems that although visually my shape keys are taking affect in the 3D View the mesh's vertices/vertex normals values do not change.

Clearly I'm not looking the right area. Any help would be appreciated.

Thank you.

CoDEmanX
Posts: 894
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Postby CoDEmanX » Wed Jun 27, 2012 11:59 am

you gotta use to_mesh() to apply shape keys (temporarily)

vertex normal is available via:
Vertex.normal
I'm sitting, waiting, wishing, building Blender in superstition...


Return to “Python”

Who is online

Users browsing this forum: No registered users and 4 guests