import bpy
f = open("/tmp/lines.txt", "r")
y=0
for line in f:
t1 = bpy.data.curves.new("message", "FONT")
o1 = bpy.data.objects.new("message", t1)
bpy.context.scene.objects.link(o1)
o1.location = (0,y,0)
t1.body = line
y = y - 1.05*t1.size
|
Blender python API quick-start
Syntax highlighting by Pygments.