-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhoudini.sh
60 lines (52 loc) · 1.59 KB
/
houdini.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/zsh
###### Description: Launch Houdini.
###### Author: Valentin Beaumont
###### Mail: [email protected]
while true; do
read -p "Do you wish to launch Houdini? [Y/n] " yn
case $yn in
[Yy]*)
# ------ Source Houdini environment accorded to current OS
_myos="$(uname)"
case $_myos in
Linux)
houdini_dir="/opt/hfs19.5"
;;
Darwin)
houdini_dir="/Applications/Houdini/Current/Frameworks/Houdini.framework/Versions/19.5/Resources"
;;
Windows)
houdini_dir="C:\Program Files\Side Effects Software\Houdini 19.5.<houdini minor version>"
;;
*) ;;
esac
cd $houdini_dir
source ./houdini_setup
echo ""
# ------ Load environment variables
echo "Loading environment variables..."
echo " • \033[0;34mPIPELINE_ROOT\033[0m: $PIPELINE_ROOT"
echo " • \033[0;34mHSITE\033[0m: $HSITE"
echo ""
# ------ Display package files being loaded
echo "Loading package files..."
package_dir="$PIPELINE_ROOT/houdini/houdini19.5/packages/"
for file in "$package_dir"*; do
echo " • $(basename "$file")"
done
echo ""
# ------ Start Houdini
echo "Launching Houdini..."
houdini
echo "Closed Houdini launcher script: Houdini is running."
break
;;
[Nn]*)
echo "Aborted by user."
exit
;;
*)
echo "Please answer \033[1;32mY\033[0mes or \033[1;31mNo\033[0m"
;;
esac
done