Quaternion to Euler en-masse?

Blender 2.5 defaults to quaternion rotations of the armature. Is there a way to change all bones to euler rotations? I think it can be done one by one, bu can I change all at once?

This is easy:

import bpy

ob = bpy.context.active_object
for n in ob.pose.bones:
    if n.selected:
        n.rotation_mode = 'XYZ'

replace ‘XYZ’ for other orders

This will apply to the selected bones

Thanks, should I type this in the text window and then execute script? Bah, why am I asking, I should try it.

Thanks again!

EDIT: Thanks, it works perfectly!