interactive character animation with python

Hi everyone,

I am working on a virtual reality setup with the blender game engine. A tracking system sends coordination data via LAN to my computer and I can use that data live in Blender: e.g. setting camera position and orientation depending on where the user turns his head. All done with python scripts.
But I am still fairly new to Blender and right now I am testing out, if it is the right tool for my application.

So here is my actual problem:

I need to set the position/orentation of the avatar’s bodyparts (e.g. hand, foot, knee,…) live from python. The avatar is supposed to be a mesh, animated with armatures and using IK. Is there any way to read/write the data of a single bone inside a armature with python?
I spent the last days trying around, but without any solution. I saw that bones work in BGE with IPO animations, but that is nothing I can use, as it has to be real-time.

Would be great if someone got a hint for me!

Thanks,
Quen

Check this thread:
http://blenderartists.org/forum/showthread.php?t=158901

I think that is what you need

Great! That looks really good, thank you for your fast answer! :slight_smile: