diff --git a/controller.py b/controller.py index d9672db..ef2a518 100644 --- a/controller.py +++ b/controller.py @@ -7,9 +7,9 @@ from sys import argv, path path.append(getcwd()) from pyutil import printStackTrace - -blend = "avatar_Hozana_wikiLibras.blend" -main = "libras.py" +currentPath = path[0] + "/" +blend = currentPath + "avatar_Hozana_wikiLibras.blend" +main = currentPath+"libras.py" if (len(argv) > 1): try: diff --git a/libras.py b/libras.py index cdec5a2..1c29fad 100644 --- a/libras.py +++ b/libras.py @@ -90,11 +90,11 @@ def configureHands(): elif(move == "retilineo"): setHandConfiguration(actions[i], json_input[hands[i]][-6:-3], hands_default_frames, bones_[i]) setHandConfiguration(actions[i], handParam, hands_frames_retilineo, bones_[i]) - elif(json_input[hands[i]][0] == "senoidal"): + elif(move == "senoidal"): orientation, direction, radius, laps = json_input[hands[i]][1:5] endFrame = circular_or_semiCircular(pose, orientation, direction, radius, laps, 5) setHandConfiguration(actions[i], handParam, [endFrame], bones_[i]) - elif(json_input[hands[i]][0] == "contato"): + elif(move == "contato"): contact_type, orientation, repetition = json_input[hands[i]][1:4] endFrame = moves.contato(pose, contact_type, orientation, repetition) setHandConfiguration(actions[i], handParam, [endFrame], bones_[i]) -- libgit2 0.21.2