Bevel a curve in a script - Blender 2.6 (beginner question)

Hi,

I need to write a script to process a given text object.

I have the text object in the scene.
I need to convert it to a curve and then bevel it.

I can convert it to a curve.
However, I can’t seem to find a way to bevel the curve from the script.

Any help would be appreciated.

Thanks,
Alex.

In theory, you don’t have to. Font objects do have their own extrude and bevel settings.

I’ll check that out.
But in theory, if I wanted to do it, do you know how I should do it?

text_object.data.bevel_depth

In the Blender interface, create a font object. With the font selected press ALT-C. A menu pops up. Instead of just clicking, wait for the tool tip to appear. The tooltip contains the bpy.ops code that you can place in your script. This is how you can discover the code for any operator used in the Blender interface. bpy.ops.object.convert(target=‘CURVE’)

The gotcha is that because it is a bpy.ops operation, you must be in the correct context when you issue the command or it fails.