# Automate setup of bone constraints with script? [duplicate]

I have a few hundred bones in an armature that I want to add some constraints in pose mode to make the bones follow anther armature with the same bone structure. To do it all by hand is tedious and I need to automate this so I won't go crazy.

What I need to do is for every bone in Armature1, add a Copy Transforms constraint that has the target of Armature2 and the chosen bone the same name as the one being applied.

Here's an example from my situation. In the picture Armature1 is T_Pose_Test_2_skeleton and Armature2 is Walk_Test_skeleton:

Man, I need to learn some Python.

Help would be greatly appreciated.