Spaces:
Sleeping
Sleeping
File size: 930 Bytes
0390e84 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/bin/bash
#
# 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"
|