First off I’d like to say I’m not new to programming nor blender but I’m new to Blender with python and I’m really enjoying it so thanks to the dev team. That said I have a couple questions:
I have this snippet creates labels for object created by another part of the script (adapted from text.py in"Introduction to Python scripting for Blender 2.5x").
the last line “textData.back=True” was a straight lift from text.py, but it throws up “AttributeError: ‘TextCurve’ object has no attribute ‘back’” if uncommented, so it’s missing a variable somewhere - where can I get more information on why text.py does what it does?
The blender python API has pretty much everything you need to know about using Python in Blender.
Information on the specific object type ‘TextCurve’ that you are having problems with can be found here. As you can see, there is no attribute ‘back’ so that’s why you’re getting the error. Whoever wrote the tutorial you were looking at maybe just didn’t update that code to the most recent revision or something.
In the future, if you run into another problem like this, remember the Blender Python reference, it is amazingly helpful. Sometimes a little vague, but always better than nothing.