-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_mixamo.sh
executable file
·43 lines (34 loc) · 1.35 KB
/
build_mixamo.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
build='builder/builder'
src_dir='data/animations/'
dst_dir='data/animations/'
actor_dir='data/built/'
ybot_dir='data/animations/ybot_retargeted/fbx/'
sampling_frequency='--sampling_frequency 15'
#$build 'data/models_actors/armadillo.fbx' 'data/built/armadillo' '--actor' '--root_bone' 'mixamorig:Hips' #'--scale' '0.01'
#for i in $src_dir*.fbx; do
#if [[ $i == *"sword"* ]]; then
#echo "building " $i
#$build $i $dst_dir`basename $i .fbx` '--animation' '--target_actor' 'data/built/armadillo.actor' $sampling_frequency
#fi
#done
$build 'data/models_actors/xbot.fbx' 'data/built/xbot' '--actor' '--root_bone' 'mixamorig:Hips' '--scale' '0.01'
for i in $src_dir*.fbx; do
if [[ $i == *"xbot"* ]]; then
echo "building " $i
$build $i $dst_dir`basename $i .fbx` '--animation' '--target_actor' 'data/built/xbot.actor' $sampling_frequency
fi
done
printf "\n"
$build 'data/models_actors/ybot.fbx' 'data/built/ybot' '--actor' '--root_bone' 'mixamorig:Hips' '--scale' '0.01'
for i in $src_dir*.fbx; do
if [[ $i == *"ybot"* ]]; then
echo "building " $i
$build $i $dst_dir`basename $i .fbx` '--animation' '--target_actor' 'data/built/ybot.actor' $sampling_frequency
fi
done
printf "\n"
for i in $ybot_dir*.fbx; do
echo "building " $i
$build $i $dst_dir`basename $i .fbx` '--animation' '--target_actor' 'data/built/ybot.actor' $sampling_frequency
done