# This script converts old 9 way blends that look like this:
#
# $sequence crouch_tommy_shoot "crouch_tommy_shootupL" "crouch_tommy_shootup" "crouch_tommy_shootupR" "crouch_tommy_shootmidL" "crouch_tommy_shootmid" "crouch_tommy_shootmidR" "crouch_tommy_shootdownL" "crouch_tommy_shootdown" "crouch_tommy_shootdownL" blend XR 45 -45 fps 30 origin 0 0 17 { event 7002 1 "1" }
#
# to this:
#
# $sequence crouch_tommy_shoot {
# "crouch_tommy_shootupL" "crouch_tommy_shootup" "crouch_tommy_shootupR"
# "crouch_tommy_shootmidL" "crouch_tommy_shootmid" "crouch_tommy_shootmidR"
# "crouch_tommy_shootdownL" "crouch_tommy_shootdown" "crouch_tommy_shootdownL"
# blendwidth 3 blend body_yaw -45 45 blend body_pitch -65 65
# fps 30 origin 0 0 17 { event 7002 1 "1" }
# }
import sys
import re
import string
if len( sys.argv ) < 3:
print "Requires 2 parameters: