Accesing bones with python?

Suppose i have a rig with 2 bones. How do I access one of them using python? Also dont bone constrains work in realtime? I tried copy location but that didnt work. :confused:

As far as I know, bone constraints only work with bones from the same armature as their targets. So, external constraints do not work. As for accessing the bones in Python, the BL_ArmatureObject has a channels attribute: http://www.blender.org/documentation/blender_python_api_2_58_release/bge.types.html#bge.types.BL_ArmatureObject

Add an armature actuator => run armature (this updates the constraints), it should also works for constraints connecting outside the armature (e.g. controlling objects)

EDIT ok found it trying
thanxx

hey thank you very much guys, Wraaah thanks a zillion, that solves my purpose without even a single line of code.:slight_smile: