always 0.0 - inline python

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Wed Nov 21, 2012 3:15 am always 0.0 - inline python

Post by ros2468 » Wed Nov 21, 2012 3:35 am

Im using the inline console for retrieving vertex data of a plane triangle, but the vertexes z axis value seem to be wrong.
Link to picture

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

Post by CoDEmanX » Wed Nov 21, 2012 2:08 pm

if you use the "old" bpy api, you need to toggle edit mode, or you will still get the vertex locations as they were before you entered edit mode.


you can avoid changing mode by using the bmesh module ... bmesh.html
I'm sitting, waiting, wishing, building Blender in superstition...

Post Reply