Hi,
i'm trying to import a .bvh (motion capture created whit makehuman) file but blender show me this error:
' Python script error: check console'
Python version 2.6.6.
Blender version 2.49b
Makehuman version 1.0alpha6.0
And this is what console show me:
| Quote: |
Compiled with Python version 2.6.6.
Checking for installed Python... got it!
Attempting import BVH /home/equipo/makehuman/exports/1.bvh
parsing bvh...
Traceback (most recent call last):
File "/home/equipo/.blender/scripts/blender/bvh_import.py", line 735, in load_bvh_ui
bvh_nodes= read_bvh(file, IMPORT_SCALE)
File "/home/equipo/.blender/scripts/blender/bvh_import.py", line 251, in read_bvh
rx, ry, rz = eulerRotate(float( line[channels[3]] ), float( line[channels[4]] ), float( line[channels[5]] ), bvh_node.rot_order)
IndexError: list index out of range
Attempting import BVH /home/equipo/makehuman/exports/1.bvh
parsing bvh...
Traceback (most recent call last):
File "/home/equipo/.blender/scripts/blender/bvh_import.py", line 735, in load_bvh_ui
bvh_nodes= read_bvh(file, IMPORT_SCALE)
File "/home/equipo/.blender/scripts/blender/bvh_import.py", line 251, in read_bvh
rx, ry, rz = eulerRotate(float( line[channels[3]] ), float( line[channels[4]] ), float( line[channels[5]] ), bvh_node.rot_order)
IndexError: list index out of range |
Hi guys, well i got the same trouble and i got a solution. just open that script "bvh_import.py" with notepad and find the line 251:
rx, ry, rz = eulerRotate(float( line[channels[3]] ), float( line[channels[4]] ), float( line[channels[5]] ), bvh_node.rot_order)
now you just put an # just like below:
#rx, ry, rz = eulerRotate(float( line[channels[3]] ), float( line[channels[4]] ), float( line[channels[5]] ), bvh_node.rot_order)
...and that's all. save it. (ensure to back up original file in case)... and finally i could open my bvh file.
-------------------
Hola muchachos, tuve el mismo problema y obtuve una solución. sólo tienen que abrir el script "bvh_import.py" con bloc de notas y busquen la línea 251:
rx, ry, rz = eulerRotate (float (line [canales [3]]), float (line [canales [4]]), float (line [canales [5]]), bvh_node.rot_order)
Ahora sólo coloquen un # al igual que a continuación:
# rx, ry, rz = eulerRotate (float (line [canales [3]]), float (line canales [[4]]), float (line [canales [5]]), bvh_node.rot_order)
... y eso es todo. guárdenlo. (asegúrese de hacer copia de seguridad del archivo original por si acaso) ... y por fin pude abrir mi archivo BVH.
ps: en mi caso el archivo "bvh_import.py" se encontraba en esta ruta:
C:\Documents and Settings\Administrador\Datos de programa\Blender Foundation\Blender\.blender\scripts\bvh_import.py
si no lo encuentran usen el buscador.
saludos ;D