converting coordinates need help

Hello. I am new to Blender and I was advice to ask here for help. Can someone help me to make a script to convert the xc,yc,zc values of the captured positions to the xb,yb,zb values of the according bone?

Thanks in advance

convert from what to what? World space to bone space?

Sorry, yes that’s right