Spaces:
Paused
Paused
Download VirtualCaliper-BodyMeshExporter/createAvatars.sh from qbhf2/GarmentCode: direct link, hf CLI and curl.
- Browser
- Download file 930 Bytes
-
https://huggingface.co/spaces/qbhf2/GarmentCode/resolve/main/VirtualCaliper-BodyMeshExporter/createAvatars.sh
- Command line
-
hf download hf://spaces/qbhf2/GarmentCode/VirtualCaliper-BodyMeshExporter/createAvatars.sh
-
curl -L -o createAvatars.sh https://huggingface.co/spaces/qbhf2/GarmentCode/resolve/main/VirtualCaliper-BodyMeshExporter/createAvatars.sh
930 Bytes
| # | |
| # 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" | |