Hello to everybody. I'm interested to learn how to make a facial animation using WebGL + Blender + Python. I've found a nice WebGL animation and I've mirrored the files from
the github rep located at this address :
I would like to understand how it works. To do it I've tried to change the blender character that the author has used with this :
To do this I need to understand how works the export_shape_keys python script that he wrote to extracts all the shape key related information out of a blender character into JSON format. When I run the script on my Ubuntu 13.04 terminal window I see that the mouse cursor changes appearance because it gets ready to accept a mouse click. When I click somewhere on the screen the script ends giving these errors :
./export_shape_keys.py: line 4: OUTPUT_DIRECTORY: command not found
./export_shape_keys.py: line 5: PRECISION: command not found
./export_shape_keys.py: line 7: syntax error near unexpected token "("
./export_shape_keys.py: line 7: `def getTextureCoords(texture, fIndex,
can someone help me to fix them ? Again,on the beginning of the script there are these two lines :
I've changed the OUTPUT_DIRECTORY parameter with this :
OUTPUT_DIRECTORY = /home/marietto/Scrivania
PRECISION = 6
but the errors happen again. What's the meaning of bpy and os ? Are they libraries ? Where can I find them ? When the mouse cursor change appearance and I click on the screen,two files called bpy and os are produced. I don't know which kind of files they are and I don't know which kind of application can open them.