Spaces:
Sleeping
Sleeping
| # | |
| # Add arguments for Python script after last " -- " | |
| # Python script options: | |
| # --body "body.json" : Body JSON file name' | |
| # --name "VC-female.fbx" : Save output as "VC-female.fbx" | |
| # --noposeshapes : Remove pose shape keys | |
| # --nobakeshape : Keep all shape keys for the body shape | |
| # --test : Test mode. Will not write out .fbx file | |
| # | |
| # Set path to local Blender 2.79b install | |
| if [[ "$OSTYPE" == "darwin"* ]]; then | |
| # OSX | |
| BLENDERPATH=./blender-2.79b-macOS-10.6/blender.app/Contents/MacOS/blender | |
| else | |
| # Linux | |
| BLENDERPATH=./blender-2.79b-linux-glibc219-x86_64/blender | |
| fi | |
| # Female | |
| $BLENDERPATH createAvatar.blend --background --python create_avatar.py -- --noposeshapes --body="body-f.json" --name "VC-female.fbx" | |
| # Male | |
| $BLENDERPATH createAvatar.blend --background --python create_avatar.py -- --noposeshapes --body="body-m.json" --name "VC-male.fbx" | |