Skip to content

Commit 4d75616

Browse files
committed
CR changes
1 parent 8529071 commit 4d75616

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

Assets/FbxExporters/README.txt

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,32 @@ You can install the package and integrations from the command-line using the fol
2020
MacOS:
2121

2222
# Configure where Unity is installed
23-
UNITY3D_VERSION="2017.1.0f3"
24-
25-
# Try special versioned location
26-
UNITY3D_PATH="/Applications/Unity ${UNITY3D_VERSION}/Unity.app/Contents/MacOS/Unity"
27-
if [ ! -f "${UNITY3D_PATH}" ]; then
28-
# Fallback to standard location
29-
UNITY3D_PATH=/Applications/Unity/Unity.app/Contents/MacOS/Unity
30-
fi
23+
# UNITY3D_VERSION=" 2017.1.0f3"
24+
UNITY3D_PATH="/Applications/Unity${UNITY3D_VERSION}/Unity.app/Contents/MacOS/Unity"
3125

3226
# Configure where unitypackage is located
3327
PACKAGE_PATH=`ls -t ~/Development/FbxExporters/FbxExporters_*.unitypackage | head -1`
3428

3529
# Configure which Unity project to install package
3630
PROJECT_PATH=~/Development/FbxExporters
3731

38-
# Install FbxExporters package
39-
"${UNITY3D_PATH}" -projectPath "${PROJECT_PATH}" -importPackage ${PACKAGE_PATH} -quit
40-
41-
# Install Maya2017 Integration
42-
# Use "InstallMaya2017CommandsOnly" to install without UI
43-
"${UNITY3D_PATH}" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya2017 -quit
44-
45-
# Configuring Maya2017 to auto-load integration
46-
MAYA_PATH=/Applications/Autodesk/maya2017/Maya.app/Contents/bin/maya
47-
48-
"${MAYA_PATH}" -command "loadPlugin unityOneClickPlugin; pluginInfo -edit -autoload true unityOneClickPlugin; quit;"
32+
if [ ! -f "${UNITY3D_PATH}" ]; then
33+
echo "Unity is not installed"
34+
else
35+
# Install FbxExporters package
36+
"${UNITY3D_PATH}" -projectPath "${PROJECT_PATH}" -importPackage ${PACKAGE_PATH} -quit
37+
38+
# Install Maya2017 Integration
39+
# Use "InstallMaya2017CommandsOnly" to install without UI
40+
"${UNITY3D_PATH}" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya2017 -quit
41+
42+
# Configuring Maya2017 to auto-load integration
43+
MAYA_PATH=/Applications/Autodesk/maya2017/Maya.app/Contents/bin/maya
44+
45+
if [ ! -f "${MAYA_PATH}" ]; then
46+
echo "Maya2017 not installed"
47+
else
48+
"${MAYA_PATH}" -command "loadPlugin unityOneClickPlugin; pluginInfo -edit -autoload true unityOneClickPlugin; quit;"
49+
fi
50+
fi
4951

0 commit comments

Comments
 (0)