Figuring out Shape Key Vertex Normals

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Wed Jun 27, 2012 2:17 am

Figuring out Shape Key Vertex Normals

Post by 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.

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

Post by CoDEmanX » Wed Jun 27, 2012 11:59 am

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

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

Post Reply