Commit 37b05e8e2a56e40ba63b154097a6f672e70201e9
1 parent
b698cccd
Exists in
master
Corrigi parâmetros no libras.py
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
controller.py
| @@ -7,9 +7,9 @@ from sys import argv, path | @@ -7,9 +7,9 @@ from sys import argv, path | ||
| 7 | path.append(getcwd()) | 7 | path.append(getcwd()) |
| 8 | 8 | ||
| 9 | from pyutil import printStackTrace | 9 | from pyutil import printStackTrace |
| 10 | - | ||
| 11 | -blend = "avatar_Hozana_wikiLibras.blend" | ||
| 12 | -main = "libras.py" | 10 | +currentPath = path[0] + "/" |
| 11 | +blend = currentPath + "avatar_Hozana_wikiLibras.blend" | ||
| 12 | +main = currentPath+"libras.py" | ||
| 13 | 13 | ||
| 14 | if (len(argv) > 1): | 14 | if (len(argv) > 1): |
| 15 | try: | 15 | try: |
libras.py
| @@ -90,11 +90,11 @@ def configureHands(): | @@ -90,11 +90,11 @@ def configureHands(): | ||
| 90 | elif(move == "retilineo"): | 90 | elif(move == "retilineo"): |
| 91 | setHandConfiguration(actions[i], json_input[hands[i]][-6:-3], hands_default_frames, bones_[i]) | 91 | setHandConfiguration(actions[i], json_input[hands[i]][-6:-3], hands_default_frames, bones_[i]) |
| 92 | setHandConfiguration(actions[i], handParam, hands_frames_retilineo, bones_[i]) | 92 | setHandConfiguration(actions[i], handParam, hands_frames_retilineo, bones_[i]) |
| 93 | - elif(json_input[hands[i]][0] == "senoidal"): | 93 | + elif(move == "senoidal"): |
| 94 | orientation, direction, radius, laps = json_input[hands[i]][1:5] | 94 | orientation, direction, radius, laps = json_input[hands[i]][1:5] |
| 95 | endFrame = circular_or_semiCircular(pose, orientation, direction, radius, laps, 5) | 95 | endFrame = circular_or_semiCircular(pose, orientation, direction, radius, laps, 5) |
| 96 | setHandConfiguration(actions[i], handParam, [endFrame], bones_[i]) | 96 | setHandConfiguration(actions[i], handParam, [endFrame], bones_[i]) |
| 97 | - elif(json_input[hands[i]][0] == "contato"): | 97 | + elif(move == "contato"): |
| 98 | contact_type, orientation, repetition = json_input[hands[i]][1:4] | 98 | contact_type, orientation, repetition = json_input[hands[i]][1:4] |
| 99 | endFrame = moves.contato(pose, contact_type, orientation, repetition) | 99 | endFrame = moves.contato(pose, contact_type, orientation, repetition) |
| 100 | setHandConfiguration(actions[i], handParam, [endFrame], bones_[i]) | 100 | setHandConfiguration(actions[i], handParam, [endFrame], bones_[i]) |