So, I’m trying to change the way an object builds itself with the build modifier- I want it to build starting with the lowest vertices, and working its way up. I wrote this python script to examine a mesh and reorder the vertices so that vertex 1 is the lowest, vertex 2 is the second lowest, etc.
import Blender
from Blender import NMesh
rawmesh=NMesh.GetRawFromObject("Suzanne")
repeater=1
i=0
temp=[0,0,0]
vertcount=0
for item in rawmesh.verts:
vertcount=vertcount+1
vertcount=vertcount-1
print "vertcount=",vertcount
while repeater==1:
repeater=0
i=0
while i<vertcount:
if rawmesh.verts[i][2]>rawmesh.verts[i+1][2]:
print "Switching verts ",i," and ",i+1
temp=rawmesh.verts[i]
rawmesh.verts[i]=rawmesh.verts[i+1]
rawmesh.verts[i+1]=temp
repeater=1
i=i+1
vertcount=0
for item in rawmesh.verts:
vertcount=vertcount+1
vertcount=vertcount-1
print "vertcount=",vertcount
NMesh.PutRaw(rawmesh,"Reordered")
However, that makes not a jot of difference in what order the vertices appear under the influence of a build modifier. Does anyone have any suggestions as to how to achieve this effect?