All pastes #283860 Raw Edit

Mine

public python v1 · immutable
#283860 ·published 2006-12-18 18:03 UTC
rendered paste body
import Blenderfrom Blender import Window, Curve, Object, Scene, Text3d#txt = Text3d.New("MyText")  # create a new Text3d object called MyTextcur = Scene.getCurrent()    # get current sceneob = Object.New('Text')     # make curve objectfnt_obj= Text3d.LoadFont('C:\WINDOWS\Fonts\Arial.TTF') # here a valid font filetxt.setFont(fnt_obj)ob.link(txt)                # link curve data with this objectcur.link(ob)                # link object into sceneob.makeDisplayList()        # rebuild the display list for this objectWindow.RedrawAll()