selected = bpy.context.selected_pose_bones
for bone in selected:
bpy.ops.pose.constraint_add(type='COPY_ROTATION')
every time i run this it the contstraints on the same pose bone not on all the pose bones.
does anyone know how to make it add a constraint on every selected pose bone .