I am using blender 2.56, which uses Python 3.1, and am working on a script
to build a skeleton. Problem I have is that after I switch the direction
of an armature, I then try to do an extrude, but the extrude occurs at
BOTH ends of the armature. So I need a way to select the tip, root, or
body of the armature . . .
When I try to do this:
>>>bpy.data.armatures[“Armature”].bones[“Bone.003”].select_tail=True
>>>bpy.data.armatures[“Armature”].bones[“Bone.003”].select_head=False
If will not work. I have tried many other ideas, but am not able to find a way
to select the tip, head or tail of the bone. As best I can tell, the functionality
as listed in the previous two lines of code just does not exist, or I am just
using the wrong syntax.
“Time is the fire in which we burn.” Gene Roddenberry
The Bone.003 was just an example, so trying it on bone.000 has the same results, which is in fact no results. My goal is only to make sure that when I do extrude, I only get one extrusion, not two. If I can select the tip or root, I should be able to accomplish that.
When I try to do this:
>>>bpy.data.armatures[“Armature”].bones[“Bone.003”].select_tail=True
>>>bpy.data.armatures[“Armature”].bones[“Bone.003”].select_head=False
It will not work.
of course it won’t, you try to access the wrong data structure. You gotta use edit_bones[“Bone.003”].select_tail=True etc. in edit mode