I'm attempting to write a script that helps automate rig creation for a specific type of armature, and the current minor issue I'm having is that I would like to create a pole target with as minimal angle variance as possible (something neat like 0deg or 90deg).
I've figured out the way I have to do it is to duplicate the upper part of my IK chain and move it along either the local X or local Z axis to keep the pole in line and prevent bizarre PoleAngle numbers. How would I go about doing this in Python?