I’m trying to write a script for automatic animation, but I’m stuck in getting the bone position in pose mode. Could anyone point me the good method ?
So far, I
- Get the armature using bpy.context.objects[‘Armature’]
- Reference the bones by armature.data.bones[‘NameOfTheBone’]
- I’m able to move the bones by script by selecting them through armature.data.bones[‘NameOfTheBone’].select = True and bpy.ops.transform.translate/rotate
- However, I can’t figure out how to get their positions in pose mode
Any tips ?
Thanks a lot !