I want to move and resize a bone by setting the coordinates of the head of the bone and the tail of the bone explicitly.
For example, let's say that these are my coordinates of my bone head:
[181, 151, 67]
and that these are the coordinates of my bone tail:
[224, 129, 76]
I accessed my bone (actually, the armature) in code as follows:
right_upper_hand_bone = bpy.data.objects["Armature"]
Now I want to move and resize right_upper_hand_bone
such that its head is located at [181, 151, 67]
and its tail is located at [224, 129, 76]
.
I Googled around, but I haven't been able to find out how to do this.
Can anyone tell me how to do this?
EDIT: I'm looking how to reshape the bone such that I explicitly set its head and its tail. Currently, I have a structure where I have a lot of armatures and only one bone within them, but I think it shouldn't be hard to adjust my code to work with one armature with many bones etc.