#===================================================================================================
# ORIGINAL BONE SYSTEM SETUP CONFIG
# version 0.51
#
# 2003.4.23 Hiromoto Aklinori
# 2003.5.01 BugFix
# Base System "Ssetup 2001Skeleton Wata01.txt"
#===================================================================================================

#--------------------------------------------------------------------------------------------------
# Target System
#--------------------------------------------------------------------------------------------------
bone-orientlike		"Hips"				"Root"

bone-orientlike		"Left Hand Target"		"Root"
bone-orientlike		"Left Hand Target_sub"		"Root"
bone-orientlike		"Left Foot Target"		"Root"

bone-orientlike		"Right Hand Target"		"Root"
bone-orientlike		"Right Hand Target_sub"		"Root"
bone-orientlike		"Right Foot Target"		"Root"

bone-orientlike		"Face Target"			"Root"
bone-orientlike		"Eye Target"			"Root"

#--------------------------------------------------------------------------------------------------
# Center Bones System
#--------------------------------------------------------------------------------------------------
bone-translateto	"Hips"				"Back"
bone-translateto	"Pelvis"			"Back"
bone-translateto	"Root"				"Back"

#--------------------------------------------------------------------------------------------------
# Arm System
#--------------------------------------------------------------------------------------------------
bone-translateto	"Left Arm Hinge"		"Left Bicep"
bone-end		"Left Arm Hinge"		"Left Hand"
bone-translateto	"Left Elbow"			"Left Bicep real"
bone-translateto	"Left Elbow"			"Left Hand"			0.5
bone-fit		"Left Bicep Orient"		"Left Bicep"
bone-end-end		"Left Bicep Orient"		"Left Elbow"

bone-translateto	"Right Arm Hinge"		"Right Bicep"
bone-end		"Right Arm Hinge"		"Right Hand"
bone-translateto	"Right Elbow"			"Right Bicep real"
bone-translateto	"Right Elbow"			"Right Hand"			0.5
bone-fit		"Right Bicep Orient"		"Right Bicep"
bone-end-end		"Right Bicep Orient"		"Right Elbow"

#--------------------------------------------------------------------------------------------------
# Balance System
#--------------------------------------------------------------------------------------------------
bone-translateto-xy	"Balance Left Foot"		"Left Foot"
bone-translateto-xy	"Balance Right Foot"		"Right Foot"
bone-translateto-xy	"Balance Point"			"Back"
bone-end		"Balance Point"			"Balance Left Foot"
bone-translateto	"Balance Base"			"Balance Right Foot"
bone-end		"Balance Base"			"Balance Point"
bone-translateto-xy	"Balance Point Rigid"		"Balance Point"
bone-end-xy		"Balance Point Rigid"		"Balance Left Foot"
bone-translateto-xy	"Balance Base Rigid"		"Balance Right Foot"
bone-end		"Balance Base Rigid"		"Balance Point Rigid"
bone-translateto	"Balance Base Aim"		"Balance Feet Center"
bone-offset-y		"Balance Base Aim"		"Hips"
bone-offset-y		"Balance Base Aim"		"Hips"
bone-offset-y		"Balance Base Aim"		"Hips"

#--------------------------------------------------------------------------------------------------
# Steady System
#--------------------------------------------------------------------------------------------------
bone-translateto	"Steady Arms"			"Back2"
bone-translateto	"Steady Head And Spine"		"Steady Arms"
bone-fit		"Left Arm Steady"		"Steady Arms"
bone-fit		"Right Arm Steady"		"Steady Arms"


#--------------------------------------------------------------------------------------------------
# Neck System
#--------------------------------------------------------------------------------------------------
bone-pivot-end		"Neck"				"Back2"
bone-end 		"Neck"				"Face"
bone-fit-reverse	"Neck roll Target"		"Neck"
bone-fit		"Neck roll"			"Neck roll Target"

#--------------------------------------------------------------------------------------------------
# Face System
#--------------------------------------------------------------------------------------------------
bone-translateto-xy	"Face Target"			"Face"
bone-fit		"Face_sub"			"Face"
bone-end 		"Face_sub"			"Face"				0.5

#--------------------------------------------------------------------------------------------------
# Head Roll System
#--------------------------------------------------------------------------------------------------
bone-fit		"Head_sub"			"Head"
bone-translateto	"Face_roll_control"		"Head"
bone-pivot-end		"Face_roll_control"		"Head" 				0.5
bone-end-end-xy		"Face_roll_control"		"Head"				0.5
bone-orientlike		"Face_roll_control"		"Face"

#--------------------------------------------------------------------------------------------------
# Eye System
#--------------------------------------------------------------------------------------------------
bone-fit		"Left Eye"			"Left Eye_size"
bone-end		"Left Eye"			"Left Eye_size"			0.5

bone-fit		"Right Eye"			"Right Eye_size"
bone-end		"Right Eye"			"Right Eye_size"		0.5

bone-translateto-xy	"Eye Target"			"Left Eye"
bone-translateto-x	"Eye Target"			"Right Eye"			0.5
bone-translateto-z	"Eye Target"			"Face Target"

#--------------------------------------------------------------------------------------------------
# Hair System
#--------------------------------------------------------------------------------------------------
bone-fit		"Left_Hair_2"			"Left_Hair_1"
bone-fit		"Left_Hair_3"			"Left_Hair_1"
bone-fit		"Left_Hair_4"			"Left_Hair_1"
bone-fit		"Left_Hair_5"			"Left_Hair_1"
bone-fit		"Left_Hair_6"			"Left_Hair_1"

bone-end		"Left_Hair_2"			"Left_Hair_2"			0.2
bone-end		"Left_Hair_3"			"Left_Hair_3"			0.3
bone-end		"Left_Hair_4"			"Left_Hair_4"			0.4
bone-end		"Left_Hair_5"			"Left_Hair_5"			0.5
bone-end		"Left_Hair_6"			"Left_Hair_6"			0.6


bone-fit		"Right_Hair_2"			"Right_Hair_1"
bone-fit		"Right_Hair_3"			"Right_Hair_1"
bone-fit		"Right_Hair_4"			"Right_Hair_1"
bone-fit		"Right_Hair_5"			"Right_Hair_1"
bone-fit		"Right_Hair_6"			"Right_Hair_1"

bone-end		"Right_Hair_2"			"Right_Hair_2"			0.2
bone-end		"Right_Hair_3"			"Right_Hair_3"			0.3
bone-end		"Right_Hair_4"			"Right_Hair_4"			0.4
bone-end		"Right_Hair_5"			"Right_Hair_5"			0.5
bone-end		"Right_Hair_6"			"Right_Hair_6"			0.6

#--------------------------------------------------------------------------------------------------
# Body System
#--------------------------------------------------------------------------------------------------
bone-end-xz		"Pelvis_sub"			"Pelvis_sub"
bone-translateto-xz	"torso"				"Pelvis_sub"
bone-end-xz		"torso"				"Pelvis_sub"
bone-end		"middle spine"			"torso"
bone-pivot-end		"middle spine"			"Pelvis_sub"

bone-orientlike		"torso"				"Pelvis_sub"
bone-orientlike		"middle spine			"Pelvis_sub"

bone-translateto	"hip1"				"Pelvis_sub"
bone-orientlike		"hip1"				"Pelvis_sub"
bone-orientlike		"hip2"				"Pelvis_sub"
bone-orientlike		"hip3"				"Pelvis_sub"
bone-orientlike		"hip4"				"Pelvis_sub"

bone-orientlike		"pelvis1"			"Pelvis_sub"
bone-orientlike		"pelvis2"			"Pelvis_sub"
bone-orientlike		"pelvis3"			"Pelvis_sub"

bone-orientlike		"breast1"			"Pelvis_sub"
bone-orientlike		"breast2"			"Pelvis_sub"
bone-orientlike		"breast3"			"Pelvis_sub"
bone-orientlike		"breast4"			"Pelvis_sub"
bone-orientlike		"breast5"			"Pelvis_sub"

#--------------------------------------------------------------------------------------------------
# Finger System
#--------------------------------------------------------------------------------------------------
bone-translateto	"Left Thumb"			"Left Thumb 1"
bone-orientlike		"Left Thumb"			"Left Thumb 1"
bone-translateto	"Left Index Finger"		"Left Index F 1"
bone-orientlike		"Left Index Finger"		"Left Index F 1"
bone-translateto	"Left Pinky Finger"		"Left Pinky F 1"
bone-orientlike		"Left Pinky Finger"		"Left Pinky F 1"
bone-translateto	"Left Middle Finger"		"Left Middle F 1"
bone-orientlike		"Left Middle Finger"		"Left Middle F 1"
bone-translateto	"Left Ring Finger"		"Left Ring F 1"
bone-orientlike		"Left Ring Finger"		"Left Ring F 1"

bone-translateto	"Right Thumb"			"Right Thumb 1"
bone-orientlike		"Right Thumb"			"Right Thumb 1"
bone-translateto	"Right Index Finger"		"Right Index F 1"
bone-orientlike		"Right Index Finger"		"Right Index F 1"
bone-translateto	"Right Pinky Finger"		"Right Pinky F 1"
bone-orientlike		"Right Pinky Finger"		"Right Pinky F 1"
bone-translateto	"Right Middle Finger"		"Right Middle F 1"
bone-orientlike		"Right Middle Finger"		"Right Middle F 1"
bone-translateto	"Right Ring Finger"		"Right Ring F 1"
bone-orientlike		"Right Ring Finger"		"Right Ring F 1"

#--------------------------------------------------------------------------------------------------
# Arm System
#--------------------------------------------------------------------------------------------------
bone-end		"Left Bicep real" 		"Left Forearm Real"
bone-fit		"Left Bicep_sub_1"	 	"Left Bicep real"
bone-end		"Left Bicep_sub_1"	 	"Left Bicep_sub_1"		0.5

bone-fit		"Left Bicep_sub_2"		"Left Bicep_sub_1"
bone-fit		"Left Bicep_sub_3"		"Left Bicep_sub_1"
bone-end		"Left Bicep_sub_2"		"Left Bicep_sub_2"		0.3
bone-end		"Left Bicep_sub_3"		"Left Bicep_sub_3"		0.5


bone-translateto	"Left Bicep"			"Left Bicep real" 	
bone-end		"Left Bicep"	 		"Left Elbow"
bone-end-end		"Left Bicep"			"Left Elbow"			0.2
bone-pivot-end		"Left Forearm"			"Left Bicep"
bone-end		"Left Forearm"			"Left Hand"

bone-fit		"Left Bicep roll_1"		"Left Bicep real"
bone-fit		"Left Bicep roll_2"		"Left Bicep real"
bone-fit		"Left Bicep roll_3"		"Left Bicep real"
bone-fit		"Left Bicep roll_4"		"Left Bicep real"

bone-end		"Left Bicep roll_1"		"Left Bicep roll_1"		0.1
bone-end		"Left Bicep roll_2"		"Left Bicep roll_2"		0.2
bone-end		"Left Bicep roll_3"		"Left Bicep roll_3"		0.3
bone-end		"Left Bicep roll_4"		"Left Bicep roll_4"		0.4

bone-end		"Left Forearm Real"		"Left Hand"
bone-fit		"Left Forearm Real_sub1"	"Left Forearm Real"
bone-fit		"Left Forearm Real_sub2"	"Left Forearm Real"
bone-fit		"Left Forearm Real_sub3"	"Left Forearm Real"

bone-end		"Left Forearm Real_sub1"	"Left Forearm Real_sub1"	0.6
bone-end		"Left Forearm Real_sub2"	"Left Forearm Real_sub2"	0.7
bone-end		"Left Forearm Real_sub3"	"Left Forearm Real_sub3"	0.8


bone-fit-reverse 	"Left Forearm roll_Target"	"Left Forearm Real"
bone-fit		"Left Forearm roll_1"		"Left Forearm roll_Target"
bone-fit		"Left Forearm roll_2"		"Left Forearm roll_Target"
bone-fit		"Left Forearm roll_3"		"Left Forearm roll_Target"

bone-end		"Left Forearm roll_1"		"Left Forearm roll_1"		0.3
bone-end		"Left Forearm roll_2"		"Left Forearm roll_2"		0.5
bone-end		"Left Forearm roll_3"		"Left Forearm roll_3"		0.7

bone-fit		"Left Hand_sub" 		"Left Hand"
bone-end		"Left Hand_sub" 		"Left Hand_sub"			0.5


bone-end		"Right Bicep real" 		"Right Forearm Real"
bone-fit		"Right Bicep_sub_1"	 	"Right Bicep real"
bone-end		"Right Bicep_sub_1"	 	"Right Bicep_sub_1"		0.5

bone-fit		"Right Bicep_sub_2"		"Right Bicep_sub_1"
bone-fit		"Right Bicep_sub_3"		"Right Bicep_sub_1"
bone-end		"Right Bicep_sub_2"		"Right Bicep_sub_2"		0.3
bone-end		"Right Bicep_sub_3"		"Right Bicep_sub_3"		0.5


bone-translateto	"Right Bicep"			"Right Bicep real" 	
bone-end		"Right Bicep"	 		"Right Elbow"
bone-end-end		"Right Bicep"			"Right Elbow"			0.2
bone-pivot-end		"Right Forearm"			"Right Bicep"
bone-end		"Right Forearm"			"Right Hand"

bone-fit		"Right Bicep roll_1"		"Right Bicep real"
bone-fit		"Right Bicep roll_2"		"Right Bicep real"
bone-fit		"Right Bicep roll_3"		"Right Bicep real"
bone-fit		"Right Bicep roll_4"		"Right Bicep real"

bone-end		"Right Bicep roll_1"		"Right Bicep roll_1"		0.1
bone-end		"Right Bicep roll_2"		"Right Bicep roll_2"		0.2
bone-end		"Right Bicep roll_3"		"Right Bicep roll_3"		0.3
bone-end		"Right Bicep roll_4"		"Right Bicep roll_4"		0.4

bone-end		"Right Forearm Real"		"Right Hand"
bone-fit		"Right Forearm Real_sub1"	"Right Forearm Real"
bone-fit		"Right Forearm Real_sub2"	"Right Forearm Real"
bone-fit		"Right Forearm Real_sub3"	"Right Forearm Real"

bone-end		"Right Forearm Real_sub1"	"Right Forearm Real_sub1"	0.6
bone-end		"Right Forearm Real_sub2"	"Right Forearm Real_sub2"	0.7
bone-end		"Right Forearm Real_sub3"	"Right Forearm Real_sub3"	0.8


bone-fit-reverse 	"Right Forearm roll_Target"	"Right Forearm Real"
bone-fit		"Right Forearm roll_1"		"Right Forearm roll_Target"
bone-fit		"Right Forearm roll_2"		"Right Forearm roll_Target"
bone-fit		"Right Forearm roll_3"		"Right Forearm roll_Target"

bone-end		"Right Forearm roll_1"		"Right Forearm roll_1"		0.3
bone-end		"Right Forearm roll_2"		"Right Forearm roll_2"		0.5
bone-end		"Right Forearm roll_3"		"Right Forearm roll_3"		0.7

bone-fit		"Right Hand_sub" 		"Right Hand"
bone-end		"Right Hand_sub" 		"Right Hand_sub"			0.5
#--------------------------------------------------------------------------------------------------
# Leg System
#--------------------------------------------------------------------------------------------------
bone-orientlike		"Left Knee"			"Root"
bone-translateto	"Left Knee"			"Left Thigh_sub"
bone-translateto	"Left Knee"			"Left Foot"			0.5

bone-end		"Left Thigh"			"Left Knee"
bone-end-end		"Left Thigh"			"Left Knee"			0.15

bone-translateto-end	"Left Calf"			"Left Thigh"
bone-end 		"Left Calf"			"Left Foot Target"

bone-translateto	"Left Leg Hinge"		"Left Thigh"
bone-end		"Left Leg Hinge"		"Left Foot"
bone-fit		"Left Thigh Orient"		"Left Thigh"
bone-end-end		"Left Thigh Orient"		"Left Knee"


bone-fit		"Left Thigh_sub"		"Left Thigh"
bone-end		"Left Thigh_sub"		"Left Knee Real"
bone-fit		"Left Thigh_sub_1"		"Left Thigh_sub"
bone-fit		"Left Thigh_sub_2"		"Left Thigh_sub"
bone-fit		"Left Thigh_sub_3"		"Left Thigh_sub"

bone-end		"Left Thigh_sub_1"		"Left Thigh_sub_1"		0.6
bone-end		"Left Thigh_sub_2"		"Left Thigh_sub_2"		0.7
bone-end		"Left Thigh_sub_3"		"Left Thigh_sub_3"		0.8


bone-translateto	"Left Thigh_roll_1"		"Left Thigh"
bone-end		"Left Thigh_roll_1"		"Left Knee Real"
bone-fit		"Left Thigh_roll_2"		"Left Thigh_roll_1"
bone-fit		"Left Thigh_roll_3"		"Left Thigh_roll_1"
bone-end		"Left Thigh_roll_2"		"Left Thigh_roll_2"		0.4
bone-end		"Left Thigh_roll_3"		"Left Thigh_roll_3"		0.5


bone-orientlike		"Left Knee Real"		"Left Calf"

bone-translateto	"Left Foot"			"Left Foot Target"
bone-fit		"Left Foot_sub1"		"Left Foot"
bone-fit		"Left Foot_sub2"		"Left Foot"
bone-end		"Left Foot_sub1"		"Left Foot_sub1"		0.2
bone-end		"Left Foot_sub2"		"Left Foot_sub2"		0.4


bone-translateto-end	"Left Calf Real"		"Left Knee Real"
bone-end 		"Left Calf Real"		"Left Foot Target"


bone-orientlike		"Left Toes"			"Left Foot Target"
bone-orientlike		"Left Toes_Top"			"Left Foot Target"

bone-orientlike		"Left Toes1"			"Left Toes"
bone-orientlike		"Left Toes2"			"Left Toes"
bone-orientlike		"Left Toes3"			"Left Toes"

bone-orientlike		"Left Toes_Top1"		"Left Toes_Top"
bone-orientlike		"Left Toes_Top2"		"Left Toes_Top"
bone-orientlike		"Left Toes_Top3"		"Left Toes_Top"



bone-orientlike		"Right Knee"			"Root"
bone-translateto	"Right Knee"			"Right Thigh_sub"
bone-translateto	"Right Knee"			"Right Foot"			0.5

bone-end		"Right Thigh"			"Right Knee"
bone-end-end		"Right Thigh"			"Right Knee"			0.15

bone-translateto-end 	"Right Calf"			"Right Thigh"
bone-end 		"Right Calf"			"Right Foot Target"

bone-translateto	"Right Leg Hinge"		"Right Thigh"
bone-end		"Right Leg Hinge"		"Right Foot"
bone-fit		"Right Thigh Orient"		"Right Thigh"
bone-end-end		"Right Thigh Orient"		"Right Knee"


bone-fit		"Right Thigh_sub"		"Right Thigh"
bone-end		"Right Thigh_sub"		"Right Knee Real"
bone-fit		"Right Thigh_sub_1"		"Right Thigh_sub"
bone-fit		"Right Thigh_sub_2"		"Right Thigh_sub"
bone-fit		"Right Thigh_sub_3"		"Right Thigh_sub"

bone-end		"Right Thigh_sub_1"		"Right Thigh_sub_1"		0.6
bone-end		"Right Thigh_sub_2"		"Right Thigh_sub_2"		0.7
bone-end		"Right Thigh_sub_3"		"Right Thigh_sub_3"		0.8


bone-translateto	"Right Thigh_roll_1"		"Right Thigh"
bone-end		"Right Thigh_roll_1"		"Right Knee Real"
bone-fit		"Right Thigh_roll_2"		"Right Thigh_roll_1"
bone-fit		"Right Thigh_roll_3"		"Right Thigh_roll_1"
bone-end		"Right Thigh_roll_2"		"Right Thigh_roll_2"		0.4
bone-end		"Right Thigh_roll_3"		"Right Thigh_roll_3"		0.5


bone-orientlike		"Right Knee Real"		"Right Calf"

bone-translateto	"Right Foot"			"Right Foot Target"
bone-fit		"Right Foot_sub1"		"Right Foot"
bone-fit		"Right Foot_sub2"		"Right Foot"
bone-end		"Right Foot_sub1"		"Right Foot_sub1"		0.2
bone-end		"Right Foot_sub2"		"Right Foot_sub2"		0.4

bone-translateto-end	"Right Calf Real"		"Right Knee Real"
bone-end 		"Right Calf Real"		"Right Foot Target"

bone-orientlike		"Right Toes"			"Right Foot Target"
bone-orientlike		"Right Toes_Top"		"Right Foot Target"

bone-orientlike		"Right Toes1"			"Right Toes"
bone-orientlike		"Right Toes2"			"Right Toes"
bone-orientlike		"Right Toes3"			"Right Toes"

bone-orientlike		"Right Toes_Top1"		"Right Toes_Top"
bone-orientlike		"Right Toes_Top2"		"Right Toes_Top"
bone-orientlike		"Right Toes_Top3"		"Right Toes_Top"


