I am building a script that takes in a set of vertices and has the co-ordinates at different key frames. The aim is to move the object based on the vertices locations in an animation…so for example it creates a object with 8 vertices, sets the current frame to 30 and moves the vertices along x by 5.
The mesh seems to move location OK but the object location doesnt change (the dot stays at 0,0,0). Can anyone tell me how to set the object location to the mesh location?
I have tried setting the IPO to the first vertex but the mesh then stays relative.
Sample code moving the mesh:
oGet = Object.Get ( “newOb” )
m = oBot.getData(mesh=1)
v = m.verts[p]
v.co = Blender.Mathutils.Vector(int(xl), int(yl), int(zl))
But I dont know what I should put for the next part of the IPO. I need to record the mesh location.
Any ideas? Ive been pulling my hair out the last 2 days :o