However, as soon as I perform the wiring, the bone will rotate to an arbitrary rotation and that becomes it new default position. This happens when I wire by script or by using the default max interface.
I know that I have to apply an offset fix, but I can't figure out how to get this offset so that I can apply it. I thought that I'd simply grab the intial rotation of the bone and then use that, but I'm working in Parent space since the bone is in a hierarcy...
"thebone.transform.rotation as eulerangles" returns the rotation in world space, using world axis.
I've tried "in coordsys parent thebone.transform.rotation as eulerangles", but that returns the same value.
So, how do I get the parent space rotation values of a bone?
I know that I'll also need to shuffle the axis, because my rotations happen in local space.