Code: Select all
image testimage = ConditionSwitch (
"test1 == 'A'", ConditionSwitch (
"test2 == 'pose1'", "pose1 A.png",
"test2 == 'pose2'", "pose2 A.png",
"test2 == 'pose3'", "pose3 A.png",
"test2 == 'pose4'", "pose4 A.png",
"test2 == 'pose5'", "pose5 A.png",
"True", "pose1 A.png"
),
"test1 == 'B'", ConditionSwitch (
"test2 == 'pose1'", "pose1 B.png",
"test2 == 'pose2'", "pose2 B.png",
"test2 == 'pose3'", "pose3 B.png",
"test2 == 'pose4'", "pose4 B.png",
"test2 == 'pose5'", "pose5 B.png",
"True", "pose1 B.png"
),
"test1 == 'C'", ConditionSwitch (
"test2 == 'pose1'", "pose1 C.png",
"test2 == 'pose2'", "pose2 C.png",
"test2 == 'pose3'", "pose3 C.png",
"test2 == 'pose4'", "pose4 C.png",
"test2 == 'pose5'", "pose5 C.png",
"True", "pose1 C.png"
),
"test1 == 'D'", ConditionSwitch (
"test2 == 'pose1'", "pose1 D.png",
"test2 == 'pose2'", "pose2 D.png",
"test2 == 'pose3'", "pose3 D.png",
"test2 == 'pose4'", "pose4 D.png",
"test2 == 'pose5'", "pose5 D.png",
"True", "pose1 D.png"
),
"True", "pose1 A.png"
)