Sounds like you want to get the distance from a bone is from its parent bone. Get this distance by calling getPosition with the defualt arguemnt: viz.REL_PARENT.
You can set the bones position offset from its parent bone by calling the setPosition command. You can also pass the optional argument viz.ABS_GLOBAL to the setPosition command to set the bone in world corrdinates.
|