I guess, you are creating a Rotate Plane IK solver. For this one, a pole vector, the direction of the rotate plane, needs to be defined. The usual way ist to create a Control object and create a pole vector constraint for the ik handle. Also, i would do the skinning after rigging, since the joint chain normally twists a…