import bpy
t1 = bpy.data.curves.new("message", "FONT")
o1 = bpy.data.objects.new("message", t1)
bpy.context.scene.objects.link(o1)
o1.location = (0,0,3)
t1.body = "Hi there!"
t1.extrude = 0.1
|
Blender python API quick-start
Syntax highlighting by Pygments.