def write_dupliverts self obj out bobj obj get_blender_object if bobj

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
def write_dupliverts(self, obj, out):
bobj = obj.get_blender_object()
# if bobj.effects:
if 0: # temp
particles = bobj.effects[0]
for v in particles.getParticlesLoc():
for vv in v:
out.write('\nTransformBegin\n')
out.write('Translate %f %f %f\n\n' % tuple(v[0]))
Generator.write_children(self, obj, out)
out.write('\nTransformEnd\n')
else:
for v in obj.get_blender_object().data.verts:
out.write('\nTransformBegin\n')
out.write('Translate %f %f %f\n\n' % tuple(v.co))
Generator.write_children(self, obj, out)
out.write('\nTransformEnd\n')